From: fgsfds Date: Fri, 9 Feb 2018 16:02:14 +0000 (+0300) Subject: temp hackfix for multiple server respawns in LMS X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=72b5cf8672e4f7885f02bba23cb98e2a40098ed8;p=d2df-sdl.git temp hackfix for multiple server respawns in LMS --- 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);