From 7fdf986df4965b23d6de513bdcb3c9533cb47c74 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 7a89824e6..7dc7ce6bb 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -5275,29 +5275,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