From 94ca9efcc5f95924b735037e2fd25404a066bde9 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 28 Jun 2026 22:58:11 +0200 Subject: [PATCH] cast this crap --- src/p_setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index fded8c003..b602f5326 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -456,10 +456,10 @@ static void P_SetupDirectionalLight(void) if (gamemap != oldmap || encoremode != oldencore || reinitmaplight) { - lighting->light_contrast = M_RandomRange(0, 58); + lighting->light_contrast = (UINT8)M_RandomRange(0, 58); lighting->sprite_backlight = 0; - lighting->use_light_angle = M_RandomRange(0, 1); // either on or off - lighting->light_angle = M_RandomRange(-382, 382); + lighting->use_light_angle = (boolean)M_RandomRange(0, 1); // either on or off + lighting->light_angle = (angle_t)M_RandomRange(-382, 382); reinitmaplight = false; }