mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
If a container is destroyed by gunfire or vehicle collision, don't destroy the contents, reveal them instead.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9087 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1917,6 +1917,9 @@ INT8 DamageStructure( STRUCTURE * pStructure, UINT8 ubDamage, UINT8 ubReason, IN
|
||||
}
|
||||
|
||||
RecompileLocalMovementCostsFromRadius( tmpgridno, 2 );
|
||||
|
||||
// if we've destroyed a structure, reveal the things inside, as destroying a structure doesn't necessarily destroy the contents inside
|
||||
RevealAllUnburiedItems( tmpgridno, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1957,6 +1960,9 @@ INT8 DamageStructure( STRUCTURE * pStructure, UINT8 ubDamage, UINT8 ubReason, IN
|
||||
}
|
||||
|
||||
RecompileLocalMovementCostsFromRadius( tmpgridno, 2 );
|
||||
|
||||
// if we've destroyed a structure, reveal the things inside, as destroying a structure doesn't necessarily destroy the contents inside
|
||||
RevealAllUnburiedItems( tmpgridno, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user