diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-02-01 14:10:46 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-02-01 14:10:46 +0100 |
commit | 6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c (patch) | |
tree | ae0d8044499fd864ca2a0e262f03462af4305000 /src | |
parent | Fix Projectile Air Resistance (diff) | |
download | re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar.gz re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar.bz2 re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar.lz re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar.xz re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.tar.zst re3-6e73d9220adb726ecc75e75080ccdb8c8fb2bc1c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 8c022765..4ddbfbf0 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -7200,7 +7200,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command) if (total == 0) CWorld::FindObjectsOfTypeInRangeSectorList(mi, CWorld::GetBigBuildingList(CTheZones::FindZoneForPoint(pos)), pos, range, true, &total, 16, apEntities); CEntity* pClosestEntity = nil; - float min_dist = 2 * range; + float min_dist = 2.0f * range; for (int i = 0; i < total; i++) { float dist = (apEntities[i]->GetPosition() - pos).Magnitude(); if (dist < min_dist) { @@ -7859,7 +7859,7 @@ void CTheScripts::AddToInvisibilitySwapArray(CEntity* pEntity, bool remove) InvisibilitySettingArray[i] = nil; } else if (!remove) { - int j = 0; + i = 0; while (i < MAX_NUM_INVISIBILITY_SETTINGS && !found) { if (InvisibilitySettingArray[i] == nil) found = true; |