Introduce RoomNum typedef

This commit is contained in:
Ryan Dwyer committed 2023-06-20 19:14:13 +10:00
1 parent c55f9c805c
commit 83e8265d5b
73 files changed
+611 -610

No files matched your search

+4 -4
View File
@@ -1607,9 +1607,9 @@ Gfx *lvRender(Gfx *gdl)
|| debugIsChrStatsEnabled()
|| debug0f11ee40()) {
#if VERSION < VERSION_NTSC_1_0
s16 spc8[21];
s16 spb0[11];
s16 sp9c[10];
RoomNum spc8[21];
RoomNum spb0[11];
RoomNum sp9c[10];
s32 j;
sp9c[0] = g_Vars.currentplayer->memcamroom;
@@ -2063,7 +2063,7 @@ void lvTick(void)
// Check if another player is in a nearby room
for (playernum = 0; playernum < PLAYERCOUNT() && !foundnearbychr; playernum++) {
if (g_Vars.players[playernum]->isdead == false) {
s16 *rooms = g_Vars.players[playernum]->prop->rooms;
RoomNum *rooms = g_Vars.players[playernum]->prop->rooms;
s32 r;
for (r = 0; rooms[r] != -1 && !foundnearbychr; r++) {