From 7fff36f90fbb1fb0f5a8cdc8d3c49a5dc2ee67b8 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Mon, 1 Oct 2018 13:57:33 +0300 Subject: [PATCH] network: it seems that something is wrong with `gTime`; tried to hack around it for weapon switching --- src/game/g_netmsg.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index e884e9b..f44e211 100644 --- 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); -- 2.29.2