File tree 3 files changed +7
-1
lines changed
gish/src/main/cpp/Gish/game
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ int touchcontrols = 0;
76
76
int cache_fix = 0 ;
77
77
int disable_frame = 0 ;
78
78
float z_zoom = 10.0f ;
79
+ int fix_boss_logic_when_lights_off = 0 ;
79
80
80
81
int fps , fps_cache = 0 , fps_renew = 0 , fps_mean ;
81
82
@@ -427,7 +428,7 @@ void gameloop(void)
427
428
428
429
if (lighting_enabled ) {
429
430
setupframelighting ();
430
- } else if (game . levelnum == 13 ) { // cave6.lvl boss
431
+ } else if (fix_boss_logic_when_lights_off ) { // cave6.lvl boss
431
432
setupframelighting_fix_cave6_boss ();
432
433
}
433
434
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ extern int lighting_enabled;
89
89
extern int shadow_enabled ;
90
90
extern int cache_fix ;
91
91
extern int disable_frame ;
92
+ extern int fix_boss_logic_when_lights_off ;
92
93
extern float z_zoom ;
93
94
94
95
#endif /* GISH_GAME_GAME_H */
Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ void loadlevel(char *filename)
297
297
FILE * fp ;
298
298
299
299
x = 0x17AF2E03 ;
300
+ fix_boss_logic_when_lights_off = 0 ;
300
301
301
302
changeddir = chdir ("level" );
302
303
@@ -344,6 +345,7 @@ void loadlevel(char *filename)
344
345
{ 0.200000 , 0.600000 , 0.200000 }
345
346
};
346
347
memcpy (level .ambient , ambient , sizeof (ambient ));
348
+ fix_boss_logic_when_lights_off = 1 ;
347
349
}
348
350
}
349
351
@@ -474,6 +476,7 @@ void loadlevel(char *filename)
474
476
{ 0.200000 , 0.600000 , 0.200000 }
475
477
};
476
478
memcpy (level .ambient , ambient , sizeof (ambient ));
479
+ fix_boss_logic_when_lights_off = 1 ;
477
480
}
478
481
}
479
482
@@ -601,6 +604,7 @@ void loadlevel(char *filename)
601
604
{ 0.200000 , 0.600000 , 0.200000 }
602
605
};
603
606
memcpy (level .ambient , ambient , sizeof (ambient ));
607
+ fix_boss_logic_when_lights_off = 1 ;
604
608
}
605
609
}
606
610
You can’t perform that action at this time.
0 commit comments