mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- reset player's blocking line on traveling between levels
It's not obvious where we can reset blocking line in a more generic way, and whether it's possible at all, because this member is exposed to scripting https://forum.zdoom.org/viewtopic.php?t=69747
This commit is contained in:
parent
5ef02df827
commit
53199e4553
1 changed files with 1 additions and 0 deletions
|
@ -1428,6 +1428,7 @@ void FLevelLocals::StartTravel ()
|
|||
if (Players[i]->health > 0)
|
||||
{
|
||||
pawn->UnlinkFromWorld (nullptr);
|
||||
pawn->BlockingLine = nullptr;
|
||||
int tid = pawn->tid; // Save TID
|
||||
pawn->SetTID(0);
|
||||
pawn->tid = tid; // Restore TID (but no longer linked into the hash chain)
|
||||
|
|
Loading…
Reference in a new issue