mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: check wether a building is in a town
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5916 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1047,6 +1047,10 @@ void HandleLoyaltyForDemolitionOfBuilding( SOLDIERTYPE *pSoldier, INT16 sPointsD
|
||||
// get town id
|
||||
bTownId = GetTownIdForSector( pSoldier->sSectorX, pSoldier->sSectorY );
|
||||
|
||||
// Flugente: for safety reasons, exit if not in a town
|
||||
if( bTownId == BLANK_SECTOR )
|
||||
return;
|
||||
|
||||
// penalize the side that did it
|
||||
if( pSoldier->bTeam == OUR_TEAM )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user