GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a731d0
)
network: it seems that something is wrong with `gTime`; tried to hack around it for...
author
Ketmar Dark <ketmar@ketmar.no-ip.org>
Mon, 1 Oct 2018 10:57:33 +0000
(13:57 +0300)
committer
Ketmar Dark <ketmar@ketmar.no-ip.org>
Mon, 1 Oct 2018 10:58:01 +0000
(13:58 +0300)
src/game/g_netmsg.pas
patch
|
blob
|
history
diff --git
a/src/game/g_netmsg.pas
b/src/game/g_netmsg.pas
index e884e9b91054550e815ce2ff5e89d9e9fae787a4..f44e2113a2e45e99351cf381c53325cd588c1cab 100644
(file)
--- a/
src/game/g_netmsg.pas
+++ b/
src/game/g_netmsg.pas
@@
-2043,6
+2043,8
@@
begin
Exit;
end;
gTime := GT;
+ if g_Game_IsClient and (gPlayer1.NetForceWeapFIdx >= gTime+5) then gPlayer1.NetForceWeapFIdx := 0;
+ if g_Game_IsClient and (gPlayer2 <> nil) and (gPlayer2.NetForceWeapFIdx >= gTime+5) then gPlayer2.NetForceWeapFIdx := 0;
PID := M.ReadWord();
Pl := g_Player_Get(PID);
DEADSOFTWARE 2012-2025