mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user