diff --git a/Tactical/Handle Doors.cpp b/Tactical/Handle Doors.cpp index 8f17409a..b88052bd 100644 --- a/Tactical/Handle Doors.cpp +++ b/Tactical/Handle Doors.cpp @@ -1180,11 +1180,6 @@ BOOLEAN HandleDoorsOpenClose( SOLDIERTYPE *pSoldier, INT32 sGridNo, STRUCTURE * ModifyDoorStatus( sGridNo, TRUE, DONTSETDOORSTATUS ); } - if ( gWorldSectorX == 13 && gWorldSectorY == MAP_ROW_I ) - { - DoPOWPathChecks(); - } - if (pSoldier ) { // OK, Are we a player merc or AI? @@ -1290,6 +1285,11 @@ BOOLEAN HandleDoorsOpenClose( SOLDIERTYPE *pSoldier, INT32 sGridNo, STRUCTURE * PlayJA2Sample( uiSoundID, RATE_11025, SoundVolume( MIDVOLUME, sGridNo ), 1, SoundDir( sGridNo ) ); } + if (gWorldSectorX == gModSettings.ubInitialPOWSectorX && gWorldSectorY == gModSettings.ubInitialPOWSectorY && gbWorldSectorZ == 0) + { + DoPOWPathChecks(); + } + } else { diff --git a/TileEngine/Explosion Control.cpp b/TileEngine/Explosion Control.cpp index f84785ac..e8a22d5b 100644 --- a/TileEngine/Explosion Control.cpp +++ b/TileEngine/Explosion Control.cpp @@ -3125,7 +3125,7 @@ void SpreadEffect( INT32 sGridNo, UINT8 ubRadius, UINT16 usItem, UINT8 ubOwner, // if anything has been done to change movement costs and this is a potential POW situation, check // paths for POWs - if ( gWorldSectorX == 13 && gWorldSectorY == MAP_ROW_I ) + if (gWorldSectorX == gModSettings.ubInitialPOWSectorX && gWorldSectorY == gModSettings.ubInitialPOWSectorY && gbWorldSectorZ == 0) { DoPOWPathChecks(); }