From dfecbe87b8e987faf037bb90006ab10614099d62 Mon Sep 17 00:00:00 2001 From: spherallic Date: Thu, 21 Mar 2024 19:30:45 +0100 Subject: [PATCH] Fix FreeBSD build error --- src/p_inter.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/p_inter.c b/src/p_inter.c index 6e96a9508..e73cd1fce 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -1365,8 +1365,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) } break; case MT_NIGHTSEXTRATIME: - boolean eligible = player->powers[pw_carry] == CR_NIGHTSMODE || (G_IsSpecialStage(gamemap) && !(maptol & TOL_NIGHTS)); - if ((player->bot && player->bot != BOT_MPAI) || !eligible) + if ((player->bot && player->bot != BOT_MPAI) || !(player->powers[pw_carry] == CR_NIGHTSMODE || (G_IsSpecialStage(gamemap) && !(maptol & TOL_NIGHTS)))) return; if (!G_IsSpecialStage(gamemap)) { @@ -1378,7 +1377,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck) else { for (i = 0; i < MAXPLAYERS; i++) - if (playeringame[i] && eligible) + if (playeringame[i] && (player->powers[pw_carry] == CR_NIGHTSMODE || (G_IsSpecialStage(gamemap) && !(maptol & TOL_NIGHTS)))) { players[i].nightstime += special->info->speed; players[i].startedtime += special->info->speed;