replace some silly warnings

This commit is contained in:
Jettford 2024-12-11 19:25:54 +00:00
parent a0f2aebb4d
commit 92d086c10b
4 changed files with 8 additions and 5 deletions

View File

@ -8,6 +8,8 @@
#define DARKFLAME_PLATFORM_IOS #define DARKFLAME_PLATFORM_IOS
#elif TARGET_OS_MAC #elif TARGET_OS_MAC
#define DARKFLAME_PLATFORM_MACOS #define DARKFLAME_PLATFORM_MACOS
#pragma clang diagnostic push // prevent pragma messages being counted as a warning
#pragma clang diagnostic ignored "-W#pragma-messages"
#else #else
#error unknown Apple operating system #error unknown Apple operating system
#endif #endif

View File

@ -9,6 +9,7 @@ class AMFArrayValue;
* @brief Sent when a player moves a Behavior A at position B to their inventory. * @brief Sent when a player moves a Behavior A at position B to their inventory.
*/ */
#pragma message("MoveToInventory.h This Control Behavior Message does not have a test yet. Non-developers can ignore this warning.") #pragma message("MoveToInventory.h This Control Behavior Message does not have a test yet. Non-developers can ignore this warning.")
class MoveToInventoryMessage : public BehaviorMessageBase { class MoveToInventoryMessage : public BehaviorMessageBase {
public: public:
MoveToInventoryMessage(const AMFArrayValue& arguments); MoveToInventoryMessage(const AMFArrayValue& arguments);

View File

@ -137,7 +137,7 @@ bool Precondition::CheckValue(Entity* player, const uint32_t value, bool evaluat
return inventoryComponent->GetLotCount(value) >= count; return inventoryComponent->GetLotCount(value) >= count;
case PreconditionType::DoesNotHaveItem: case PreconditionType::DoesNotHaveItem:
return inventoryComponent->IsEquipped(value) < count; return (inventoryComponent->IsEquipped(value) ? 1 : 0) < count;
case PreconditionType::HasAchievement: case PreconditionType::HasAchievement:
if (missionComponent == nullptr) return false; if (missionComponent == nullptr) return false;
return missionComponent->GetMissionState(value) >= eMissionState::COMPLETE; return missionComponent->GetMissionState(value) >= eMissionState::COMPLETE;

View File

@ -65,13 +65,13 @@ void RandomSpawnerFin::OnStartup(Entity* self) {
}; };
sectionMultipliers = { sectionMultipliers = {
{"secA", 1}, {"secA", 1.0f},
{"secB", 1}, {"secB", 1.0f},
{"secC", 1.2f}, {"secC", 1.2f},
{"secD", 1.3f}, {"secD", 1.3f},
{"secE", 1.6f}, {"secE", 1.6f},
{"secF", 1}, {"secF", 1.0f},
{"secG", 1}, {"secG", 1.0f},
{"secH", 1.2f}, {"secH", 1.2f},
}; };