From 72b5cf8672e4f7885f02bba23cb98e2a40098ed8 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 9 Feb 2018 19:02:14 +0300 Subject: [PATCH] temp hackfix for multiple server respawns in LMS --- src/game/g_player.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game/g_player.pas b/src/game/g_player.pas index a088f28..103d2f5 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -4479,6 +4479,11 @@ begin FSpectatePlayer := -1; FSpawned := True; + if (gPlayer1 = nil) and (gLMSPID1 = FUID) then + gPlayer1 := self; + if (gPlayer2 = nil) and (gLMSPID2 = FUID) then + gPlayer2 := self; + if g_Game_IsNet then begin MH_SEND_PlayerPos(True, FUID, NET_EVERYONE); -- 2.29.2