mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Fix: negative values for ExplosionSoundID or AltExplosionSoundID in ExplosionData.xml cause a game crash, even though negative values are intended
- armed vehicles always get the 'mounted' bonus for their guns - removed unused code - increased ASD starting resources git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8115 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -14307,6 +14307,10 @@ BOOLEAN SOLDIERTYPE::IsWeaponMounted( void )
|
||||
if ( TileIsOutOfBounds( this->sGridNo ) )
|
||||
return(FALSE);
|
||||
|
||||
// if we are a combat vehicle, our guns are always mounted
|
||||
if ( ARMED_VEHICLE( this ) )
|
||||
return TRUE;
|
||||
|
||||
// anv: passengers who can shoot can rest their guns
|
||||
if ( this->flags.uiStatusFlags & (SOLDIER_DRIVER | SOLDIER_PASSENGER) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user