diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-01-06 00:47:29 -0500 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-01-06 00:47:29 -0500 |
| commit | b18a1e448ae63c5a77f43cf0357dffb9a8e054bf (patch) | |
| tree | ade595d4a3ce669d1deab3400bb24fbea317cd9f /src/d/d_com_inf_game.cpp | |
| parent | 37dbfd75de367d41e5a2edffa00b1b6027b1bd8e (diff) | |
Add enums for island room numbers and indexes
Diffstat (limited to 'src/d/d_com_inf_game.cpp')
| -rw-r--r-- | src/d/d_com_inf_game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/d/d_com_inf_game.cpp b/src/d/d_com_inf_game.cpp index a04c807c..f2a081a7 100644 --- a/src/d/d_com_inf_game.cpp +++ b/src/d/d_com_inf_game.cpp @@ -193,7 +193,7 @@ int dComIfG_play_c::getLayerNo(int i_roomNo) { } if (strcmp(dComIfGp_getStartStageName(), "sea") == 0) { - if (i_roomNo == 44) { + if (i_roomNo == dIsleRoom_OutsetIsland_e) { if (dComIfGs_isEventBit(0x520)) { return layer | 4; } else if (dComIfGs_isEventBit(0xE20)) { @@ -201,13 +201,13 @@ int dComIfG_play_c::getLayerNo(int i_roomNo) { } else if (dComIfGs_isEventBit(0x101)) { return 9; } - } else if (i_roomNo == 11) { + } else if (i_roomNo == dIsleRoom_WindfallIsland_e) { if (dComIfGs_isEventBit(0x2D01)) { return layer | 4; } else if (dKy_checkEventNightStop()) { return layer | 2; } - } else if (i_roomNo == 1) { + } else if (i_roomNo == dIsleRoom_ForsakenFortress_e) { return dComIfGs_isEventBit(0x1820) ? 3 : 1; } } else if (strcmp(dComIfGp_getStartStageName(), "A_mori") == 0) { @@ -1211,7 +1211,7 @@ void dComIfGs_setGameStartStage() { point = 0; } else { strcpy(stage_name, "sea"); - room_no = 11; + room_no = dIsleRoom_WindfallIsland_e; point = 0; } } |
