Skip to content

Commit 1831dd9

Browse files
committed
Fix GCC warning
1 parent 0db04a6 commit 1831dd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prboom2/src/r_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,11 +931,12 @@ static void R_SetupFrame (player_t *player)
931931
int i, cm;
932932

933933
int FocalTangent = finetangent[FINEANGLES/4 + FieldOfView/2];
934+
int extra_brightness = dsda_IntConfig(dsda_config_extra_level_brightness);
934935

935936
viewplayer = player;
936937

937938
extralight = player->extralight;
938-
int extra_brightness = dsda_IntConfig(dsda_config_extra_level_brightness);
939+
939940
if (extra_brightness < 0 || extra_brightness > 4) {
940941
extra_brightness = 0;
941942
}

0 commit comments

Comments
 (0)