- 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:
alexey.lysiuk 2020-09-01 15:02:02 +03:00
parent 5ef02df827
commit 53199e4553

View file

@ -1428,6 +1428,7 @@ void FLevelLocals::StartTravel ()
if (Players[i]->health > 0) if (Players[i]->health > 0)
{ {
pawn->UnlinkFromWorld (nullptr); pawn->UnlinkFromWorld (nullptr);
pawn->BlockingLine = nullptr;
int tid = pawn->tid; // Save TID int tid = pawn->tid; // Save TID
pawn->SetTID(0); pawn->SetTID(0);
pawn->tid = tid; // Restore TID (but no longer linked into the hash chain) pawn->tid = tid; // Restore TID (but no longer linked into the hash chain)