Merge pull request #525 from cylonicboom/fix-mp-nvg

Fixes MP NVG flashing bug
This commit is contained in:
fgsfds authored and GitHub committed 2024-11-22 10:28:18 +01:00
commit 3cadaecf96
1 file changed
+13 -1
+13 -1
View File
@@ -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;