mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Merged revision(s) 7438-7439 from trunk/GameSource/ja2_v1.13:
- Fix: missing buildfile entries for ModularizedTacticalAI when building a Release exe with debugInfo in VS2010 - Fix: incorrect size of an array led to variable corruption Fix: error in Disease calculation git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7440 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -573,7 +573,7 @@ void PopulationMove( INT16 sXA, INT16 sYA, INT16 sXB, INT16 sYB, UINT16 usAmount
|
||||
|
||||
FLOAT infectedpercentage = 0;
|
||||
if ( populationB )
|
||||
(FLOAT)pSectorInfoB->usInfected / (FLOAT)(populationB);
|
||||
infectedpercentage = (FLOAT)pSectorInfoB->usInfected / (FLOAT)(populationB);
|
||||
|
||||
if ( infectedpercentage >= GetSectorDiseaseOverFlowThreshold() || pSectorInfoB->fInfectionSeverity > ((FLOAT)Disease[0].sInfectionPtsOutbreak / (FLOAT)Disease[0].sInfectionPtsFull) )
|
||||
pSectorInfoB->usInfectionFlag |= (SECTORDISEASE_OUTBREAK | SECTORDISEASE_DIAGNOSED_WHO);
|
||||
|
||||
Reference in New Issue
Block a user