mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 21:01:04 +00:00
Each Time Fix: Multiple players simultaneously entering a sector, e.g. Tails carries one in.
This commit is contained in:
parent
5b07cf8ff0
commit
2191e5b9de
1 changed files with 2 additions and 1 deletions
|
@ -2222,7 +2222,7 @@ void T_EachTimeThinker(levelspecthink_t *eachtime)
|
||||||
oldPlayersArea = oldPlayersInArea;
|
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)
|
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.
|
// 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.
|
// Makes much more sense doing it this way, honestly.
|
||||||
P_RunTriggerLinedef(eachtime->sourceline, players[affectPlayer].mo, sec);
|
P_RunTriggerLinedef(eachtime->sourceline, players[affectPlayer].mo, sec);
|
||||||
|
oldPlayersArea[affectPlayer]=1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue