From 2191e5b9de6552c97dcc763a7c0cf7379a4502d7 Mon Sep 17 00:00:00 2001 From: ilag11111 Date: Wed, 1 Oct 2014 13:49:44 -0700 Subject: [PATCH] Each Time Fix: Multiple players simultaneously entering a sector, e.g. Tails carries one in. --- src/p_floor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_floor.c b/src/p_floor.c index 6d28175e..7edf04bc 100644 --- a/src/p_floor.c +++ b/src/p_floor.c @@ -2222,7 +2222,7 @@ void T_EachTimeThinker(levelspecthink_t *eachtime) oldPlayersArea = oldPlayersInArea; } - if ((affectPlayer = P_HavePlayersEnteredArea(playersArea, oldPlayersArea, inAndOut)) != -1) + while ((affectPlayer = P_HavePlayersEnteredArea(playersArea, oldPlayersArea, inAndOut)) != -1) { if (GETSECSPECIAL(sec->special, 2) == 2 || GETSECSPECIAL(sec->special, 2) == 3) { @@ -2252,6 +2252,7 @@ void T_EachTimeThinker(levelspecthink_t *eachtime) // This should now run ONLY the stuff for eachtime->sourceline itself, instead of all trigger linedefs sharing the same tag. // Makes much more sense doing it this way, honestly. P_RunTriggerLinedef(eachtime->sourceline, players[affectPlayer].mo, sec); + oldPlayersArea[affectPlayer]=1; } }