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:
Sevenfm
2020-05-24 06:17:18 +00:00
parent 0f44c83b71
commit fac4927bc6
+1 -1
View File
@@ -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....