Fix room matrices in 2 player

This commit is contained in:
Ryan Dwyer
2022-11-17 17:46:01 +10:00
parent 6181870b38
commit c0276247fa
+5 -5
View File
@@ -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;
}