UB 1.13 Fixes (by Jazz)

- Externalized more hardcoded grid numbers

git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@2298 4f8fa57e-7814-0410-bad4-adc449f26b7c
This commit is contained in:
Wanne
2016-03-08 21:07:09 +00:00
parent c5b3d24220
commit 23a6efb03a
4 changed files with 233 additions and 22 deletions
+2 -2
View File
@@ -366,11 +366,11 @@ end
if ActionID == 29 then
-- if the player is in the power plant
if( gWorldSectorX == 13 and gWorldSectorY == 10 and gbWorldSectorZ == 0 ) then
if( gWorldSectorX == UB_iniPOWERGEN_SECTOR_X and gWorldSectorY == UB_iniPOWERGEN_SECTOR_Y and gbWorldSectorZ == UB_iniPOWERGEN_SECTOR_Z ) then
UB_HandleSeeingPowerGenFan( sGridNo )
elseif( gWorldSectorX == 15 and gWorldSectorY == 12 and gbWorldSectorZ == 3 ) then
elseif( gWorldSectorX == UB_iniSECTOR_LAUNCH_MISSLES_X and gWorldSectorY == UB_iniSECTOR_LAUNCH_MISSLES_Y and gbWorldSectorZ == UB_iniSECTOR_LAUNCH_MISSLES_Z ) then
-- The player is hitting the switch to launch the missles
UB_HandlePlayerHittingSwitchToLaunchMissles()