mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- New command: On [Alt] + [N], all team members in the sector try to put on gas masks
- Fix: gasmask status was not always evaluated correctly git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8315 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "Soldier macros.h"
|
||||
#include "Render Fun.h"
|
||||
#include "Soldier Functions.h" // added by Flugente
|
||||
#endif
|
||||
#include "connect.h"
|
||||
//forward declarations of common classes to eliminate includes
|
||||
@@ -87,10 +88,11 @@ int LegalNPCDestination(SOLDIERTYPE *pSoldier, INT32 sGridNo, UINT8 ubPathMode,
|
||||
|
||||
//Madd: added to prevent people from running into gas and fire
|
||||
if ( (gpWorldLevelData[sGridNo].ubExtFlags[pSoldier->pathing.bLevel] & (MAPELEMENT_EXT_TEARGAS | MAPELEMENT_EXT_MUSTARDGAS)) &&
|
||||
FindGasMask(pSoldier) == NO_SLOT )
|
||||
!DoesSoldierWearGasMask( pSoldier ) )
|
||||
{
|
||||
return( FALSE );
|
||||
}
|
||||
|
||||
if ( gpWorldLevelData[sGridNo].ubExtFlags[pSoldier->pathing.bLevel] & MAPELEMENT_EXT_BURNABLEGAS )
|
||||
{
|
||||
return( FALSE );
|
||||
|
||||
Reference in New Issue
Block a user