From fac4927bc68d3354320c49de4ffd1d33173c510c Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sun, 24 May 2020 06:17:18 +0000 Subject: [PATCH] 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 --- Tactical/LOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tactical/LOS.cpp b/Tactical/LOS.cpp index 3e7e49b9..c8dbec7c 100644 --- a/Tactical/LOS.cpp +++ b/Tactical/LOS.cpp @@ -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....