From ce6424117e38be1e2951ef44f54b9af9db83ec66 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sun, 12 May 2024 16:31:45 +0200 Subject: [PATCH] port: re-disable glare calculation in multiplayer they don't render anyway --- src/game/bg.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/game/bg.c b/src/game/bg.c index 3eaf35fc9..c6dddc699 100644 --- a/src/game/bg.c +++ b/src/game/bg.c @@ -6407,12 +6407,16 @@ end: void bgCalculateGlaresForVisibleRooms(void) { s32 i; + g_NumRoomsWithGlares = 0; - for (i = 1; i < g_Vars.roomcount; i++) { - if (g_Rooms[i].flags & ROOMFLAG_ONSCREEN) { - artifactsCalculateGlaresForRoom(i); - if (g_NumRoomsWithGlares < 100) { - g_GlareRooms[g_NumRoomsWithGlares++] = i; + + if (!g_Vars.mplayerisrunning) { + for (i = 1; i < g_Vars.roomcount; i++) { + if (g_Rooms[i].flags & ROOMFLAG_ONSCREEN) { + artifactsCalculateGlaresForRoom(i); + if (g_NumRoomsWithGlares < 100) { + g_GlareRooms[g_NumRoomsWithGlares++] = i; + } } } }