X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=5e95a6a57dd97b42a4d31178c153e94589092816;hb=78849b4410c239e0c5451ff7103c0914668825f1;hp=92c45168c620f9c1f450c3e5ffc650f1b20ad359;hpb=6820eae460a9c99136ab5e679ffe2f6236c3540f;p=d2df-sdl.git diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index 92c4516..5e95a6a 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -495,7 +495,7 @@ begin else begin plr.Respawn(False); - if gLMSRespawn = LMS_RESPAWN_WARMUP then + if gLMSRespawn > LMS_RESPAWN_NONE then MH_SEND_GameEvent(NET_EV_LMS_WARMUP, gLMSRespawnTime - gTime, 'N', C.ID); end; end; @@ -595,7 +595,7 @@ begin begin if Pl.FSpectator then begin - if (gGameSettings.MaxLives = 0) or (gLMSRespawn = LMS_RESPAWN_WARMUP) then + if (gGameSettings.MaxLives = 0) or (gLMSRespawn > LMS_RESPAWN_NONE) then Pl.Respawn(False) else MH_SEND_GameEvent(NET_EV_LMS_NOSPAWN, Pl.UID); @@ -1768,8 +1768,6 @@ begin gTime := EvTime; - e_LogWritefln('EVENT %d %d', [EvType, EvNum]); - if (g_Res_received_map_start <> 0) then begin if (g_Res_received_map_start < 0) then exit; @@ -2346,12 +2344,12 @@ begin FSpectator := M.ReadByte() <> 0; if FSpectator then begin - if Pl = gPlayer1 then + if UID = NetPlrUID1 then begin gSpectLatchPID1 := UID; gPlayer1 := nil; end; - if Pl = gPlayer2 then + if UID = NetPlrUID2 then begin gSpectLatchPID2 := UID; gPlayer2 := nil;