X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmsg.pas;h=92084b1304662060019422a77096ad59f138a132;hb=dffafd305d0df029f317cc92c1968ba0065c0cd8;hp=57e51369af7a7d2f7f701b6a3e3bd79b8a39fcc3;hpb=4e51e140c0b57225fddec5c839cecf3f3cdec9cc;p=d2df-sdl.git diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index 57e5136..92084b1 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -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); @@ -2282,7 +2282,8 @@ begin GameVelY := M.ReadLongInt(); GameAccelX := M.ReadLongInt(); GameAccelY := M.ReadLongInt(); - SetLerp(TmpX, TmpY); + GameX := TmpX; + GameY := TmpY; if NetForcePlayerUpdate then Update(); end; end; @@ -2344,12 +2345,12 @@ begin FSpectator := M.ReadByte() <> 0; if FSpectator then begin - if PID = NetPlrUID1 then + if UID = NetPlrUID1 then begin gSpectLatchPID1 := UID; gPlayer1 := nil; end; - if PID = NetPlrUID2 then + if UID = NetPlrUID2 then begin gSpectLatchPID2 := UID; gPlayer2 := nil;