From: DeaDDooMER Date: Fri, 4 Jan 2019 19:58:37 +0000 (+0300) Subject: Revert "network: it seems that something is wrong with `gTime`; tried to hack around... X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=5c25a7dbffb4dbd896cc24cfafbd8cc52ddf22a4 Revert "network: it seems that something is wrong with `gTime`; tried to hack around it for weapon switching" This reverts commit 7fff36f90fbb1fb0f5a8cdc8d3c49a5dc2ee67b8. --- diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index f44e211..e884e9b 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -2043,8 +2043,6 @@ 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);