summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7089a87)
raw | patch | inline | side by side (parent: 7089a87)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 6 Mar 2020 18:35:46 +0000 (21:35 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Fri, 6 Mar 2020 18:35:46 +0000 (21:35 +0300) |
src/game/g_player.pas | patch | blob | history | |
src/game/g_window.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 3e30f6378a3799c73b26979ee9426c400149be2c..925f4ce55c6926bcd969f8b52779d2dc19e05308 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
e_TextureFontPrint(0, fH * 3, 'Vel Y: ' + IntToStr(p.FObj.Vel.Y), gStdFont);
e_TextureFontPrint(0, fH * 4, 'Acc X: ' + IntToStr(p.FObj.Accel.X), gStdFont);
e_TextureFontPrint(0, fH * 5, 'Acc Y: ' + IntToStr(p.FObj.Accel.Y), gStdFont);
+ e_TextureFontPrint(0, fH * 6, 'Old X: ' + IntToStr(p.FObj.oldX), gStdFont);
+ e_TextureFontPrint(0, fH * 7, 'Old Y: ' + IntToStr(p.FObj.oldY), gStdFont);
end;
procedure g_Player_DrawHealth();
end;
FShellTimer := -1;
+ // have to do this to avoid death tremors
+ PreUpdate();
+
if (gGameSettings.MaxLives > 0) and Srv and (gLMSRespawn = LMS_RESPAWN_NONE) then
begin
if FLives > 0 then FLives := FLives - 1;
var
AX, AY: Integer;
begin
+ FXTo := XTo;
+ FYTo := YTo;
if NetInterpLevel < 1 then
begin
FObj.X := XTo;
end
else
begin
- FXTo := XTo;
- FYTo := YTo;
-
AX := Abs(FXTo - FObj.X);
AY := Abs(FYTo - FObj.Y);
if (AX > 32) or (AX <= NetInterpLevel) then
diff --git a/src/game/g_window.pas b/src/game/g_window.pas
index f55c43001f90849c064bfc3a98b9dac28370322f..5d1c59476562a51e5857173ed10021712e2580f1 100644 (file)
--- a/src/game/g_window.pas
+++ b/src/game/g_window.pas
else if (NetMode = NET_CLIENT) then g_Net_Client_Update();
Update();
end;
- end
- else
- begin
- if (NetMode = NET_SERVER) then g_Net_Host_Update()
- else if (NetMode = NET_CLIENT) then g_Net_Client_Update();
end;
if NetMode = NET_SERVER then g_Net_Flush();