Skip to content

Commit

Permalink
Fixes N64 MP NVG flashing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonicboom committed Nov 9, 2024
1 parent 2a5c3a3 commit 8fe95d7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/game/propobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,19 @@ void propCalculateShadeColour(struct prop *prop, u8 *nextcol, u16 floorcol)
#endif
{
s32 shade = func0f068fc8(prop, 0);

if (USINGDEVICE(DEVICE_NIGHTVISION)) {
switch (prop->type) {
case PROPTYPE_PLAYER:
if (g_Vars.currentplayer->prop == prop) {
break;
}
default:
if (prop->rooms[0] >= 0) {
shade = g_Rooms[prop->rooms[0]].br_settled_regional;
}
break;
}
}
roomr = shade;
roomg = shade;
roomb = shade;
Expand Down

0 comments on commit 8fe95d7

Please sign in to comment.