forked from Ports/perfect_dark
Merge branch 'port' of https://github.com/fgsfdsfgs/perfect_dark into port-debugger
This commit is contained in:
commit
86eaa624a3
1 file changed
+9
-5
+9
-5
@@ -6407,12 +6407,16 @@ end:
|
|||||||
void bgCalculateGlaresForVisibleRooms(void)
|
void bgCalculateGlaresForVisibleRooms(void)
|
||||||
{
|
{
|
||||||
s32 i;
|
s32 i;
|
||||||
|
|
||||||
g_NumRoomsWithGlares = 0;
|
g_NumRoomsWithGlares = 0;
|
||||||
for (i = 1; i < g_Vars.roomcount; i++) {
|
|
||||||
if (g_Rooms[i].flags & ROOMFLAG_ONSCREEN) {
|
if (!g_Vars.mplayerisrunning) {
|
||||||
artifactsCalculateGlaresForRoom(i);
|
for (i = 1; i < g_Vars.roomcount; i++) {
|
||||||
if (g_NumRoomsWithGlares < 100) {
|
if (g_Rooms[i].flags & ROOMFLAG_ONSCREEN) {
|
||||||
g_GlareRooms[g_NumRoomsWithGlares++] = i;
|
artifactsCalculateGlaresForRoom(i);
|
||||||
|
if (g_NumRoomsWithGlares < 100) {
|
||||||
|
g_GlareRooms[g_NumRoomsWithGlares++] = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user