mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: game crash when civilians kill other civilians in a town
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6298 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -930,6 +930,22 @@ void HandleMurderOfCivilian( SOLDIERTYPE *pSoldier, BOOLEAN fIntentional )
|
||||
}
|
||||
break;
|
||||
|
||||
// Flugente: civilians might also kill somebody, no matter how unlikely that sounds
|
||||
// punish the player - he didnt stop the bloodshed
|
||||
case CIV_TEAM:
|
||||
{
|
||||
// on our side, penalty
|
||||
iLoyaltyChange *= REDUCTION_FOR_MURDER_NOT_OUR_FAULT;
|
||||
iLoyaltyChange /= 100;
|
||||
|
||||
// lose loyalty
|
||||
fIncrement = FALSE;
|
||||
|
||||
// debug message
|
||||
ScreenMsg( MSG_FONT_RED, MSG_DEBUG, L"Town holds you responsible for not stopping the murder.");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
Assert(FALSE);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user