mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Bigmaps lockbusting fix: removed incorrect type cast (as suggested by Franimus).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8807 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -3492,7 +3492,7 @@ INT32 HandleBulletStructureInteraction( BULLET * pBullet, STRUCTURE * pStructure
|
||||
// ATE: Alrighty, check for shooting door locks...
|
||||
// First check this is a type of struct that can handle locks...
|
||||
// HEADROCK HAM 5.1: Fragments have radical target gridnos, which would prevent them from opening a lock otherwise.
|
||||
if ( pStructure->fFlags & ( STRUCTURE_DOOR | STRUCTURE_OPENABLE ) && (PythSpacesAway( (INT16) pBullet->sTargetGridNo, pStructure->sGridNo ) <= 2 || pBullet->fFragment) )
|
||||
if ( pStructure->fFlags & ( STRUCTURE_DOOR | STRUCTURE_OPENABLE ) && (PythSpacesAway(pBullet->sTargetGridNo, pStructure->sGridNo) <= 2 || pBullet->fFragment) )
|
||||
{
|
||||
// lookup lock table to see if we have a lock,
|
||||
// and then remove lock if enough damage done....
|
||||
|
||||
Reference in New Issue
Block a user