From 8939e2601da60c378cf566dcec059d15161bae52 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 26 Feb 2025 13:04:10 +0100 Subject: [PATCH] actually can just use this directly --- src/p_spec.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 38fe8ea6b..1b25990b5 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5270,29 +5270,8 @@ void P_SpawnSpecials(INT32 fromnetsave, boolean reloadinggamestate) } } - switch (mapheaderinfo[gamemap-1]->weather) - { - case 2: // snow - curWeather = PRECIP_SNOW; - break; - case 3: // rain - curWeather = PRECIP_RAIN; - break; - case 1: // storm - curWeather = PRECIP_STORM; - break; - case 5: // storm w/o rain - curWeather = PRECIP_STORM_NORAIN; - break; - case 6: // storm w/o lightning - curWeather = PRECIP_STORM_NOSTRIKES; - break; - case 4: // blank - curWeather = PRECIP_BLANK; - break; - default: - curWeather = PRECIP_NONE; - } + // set current weather + curWeather = mapheaderinfo[gamemap-1]->weather; P_InitTagLists(); // Create xref tables for tags P_SearchForDisableLinedefs(); // Disable linedefs are now allowed to disable *any* line