summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (from parent 1: 7fff36f)
raw | patch | inline | side by side (from parent 1: 7fff36f)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 1 Oct 2018 11:00:21 +0000 (14:00 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Mon, 1 Oct 2018 11:00:40 +0000 (14:00 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 4429fd0957c2efda42813ebbf0a3801217cea65f..0099b171830fbec8dfed9979c4d4d4e5eed092fb 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
if gPlayers[i] is TPlayer then
begin
gPlayers[i].Update();
+ if (not gPlayers[i].alive) then gPlayers[i].NetForceWeapFIdx := 0; // just in case
//if g_Game_IsClient or not g_Game_IsNet then
begin
gPlayers[i].RealizeCurrentWeapon(); // WARNING! DO NOT MOVE THIS INTO `Update()`!
FSecrets := 0;
//FCurrFrameIdx := 0;
//FNetForceWeap := FCurrWeap;
- //FNetForceWeapFIdx := 0;
+ FNetForceWeapFIdx := 0;
if FNoRespawn then
begin
FSpectator := False;
FLastHit := 0;
FLastFrag := 0;
FComboEvnt := -1;
+ FNetForceWeapFIdx := 0;
SetFlag(FLAG_NONE);
SetAction(A_STAND, True);
FPain := 0;
FLastHit := 0;
//FNetForceWeap := FCurrWeap;
+ FNetForceWeapFIdx := 0;
if not g_Game_IsServer then
Exit;