From c0276247fa5f9916c4f476fa594e7554a81b5b4a Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 17 Nov 2022 17:46:01 +1000 Subject: [PATCH] Fix room matrices in 2 player --- src/game/room.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/room.c b/src/game/room.c index b32efe942..e9c9479fc 100644 --- a/src/game/room.c +++ b/src/game/room.c @@ -108,16 +108,16 @@ struct roommtx *room0f166c20(s32 roomnum) if (index == -1 || g_Vars.currentplayer->lastroomforoffset != g_RoomMtxes[index].room2 || g_RoomMtxes[index].somefloat != var8005ef10[0]) { - if (index == -1) { - roommtx = room0f1669fc(); - } else { - roommtx = &g_RoomMtxes[index]; - room0f16692c(roommtx, roomnum); + if (index != -1) { + room0f16692c(&g_RoomMtxes[index], roomnum); } + roommtx = room0f1669fc(); + room0f1668f0(roommtx, roomnum); roommtx->count = 0; } else { + roommtx = &g_RoomMtxes[index]; roommtx->count = 0; return roommtx; }