Fix: after a riot, prisoners were not reset to 0, leading to a huge buildup over time

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5730 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2012-12-15 15:12:28 +00:00
parent 5335553158
commit 14b782465a
+6
View File
@@ -5731,6 +5731,9 @@ void HandlePrison( INT16 sMapX, INT16 sMapY, INT8 bZ )
{
// add enemies
pSectorInfo->ubNumTroops += numprisoners;
// all prisoners are free, reduce count!
pSectorInfo->uiNumberOfPrisonersOfWar = 0;
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, szPrisonerTextStr[STR_PRISONER_ARMY_FREED_PRISON], wSectorName );
@@ -5785,6 +5788,9 @@ void HandlePrison( INT16 sMapX, INT16 sMapY, INT8 bZ )
// add enemies
pSectorInfo->ubNumTroops += numprisoners;
// all prisoners are free, reduce count!
pSectorInfo->uiNumberOfPrisonersOfWar = 0;
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, szPrisonerTextStr[STR_PRISONER_RIOT], wSectorName );
}
}