DEADSOFTWARE

temp hackfix for multiple server respawns in LMS
authorfgsfds <pvt.fgsfds@gmail.com>
Fri, 9 Feb 2018 16:02:14 +0000 (19:02 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Fri, 9 Feb 2018 16:02:14 +0000 (19:02 +0300)
src/game/g_player.pas

index a088f2851d2b03c2c3e702f2b83feeb0d6e99cd1..103d2f59bf949f86863e759432deea2dbbf584b9 100644 (file)
@@ -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);