diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index 2ec93df11d2f99501fa7ce1176c5076105436ad7..2f089d711a6bd6265a1a6284c36c4f12b04c7ce1 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
FMonsterKills := 0;
FDeath := 0;
FSecrets := 0;
+ FSpawnInvul := 0;
FReady := False;
if FNoRespawn then
begin
FShellTimer := -1;
FPain := 0;
FLastHit := 0;
+ FSpawnInvul := 0;
if not g_Game_IsServer then
Exit;
if FDirection = TDirection.D_LEFT then FAngle := ANGLE_LEFTDOWN else FAngle := ANGLE_RIGHTDOWN;
- if FIncCam > -120.0 * g_dbg_scale then DecMin(FIncCam, 5, Integer(-120.0 * g_dbg_scale));
+ if FIncCam > -120 then DecMin(FIncCam, 5, -120);
end;
procedure TPlayer.SeeUp();
if FDirection = TDirection.D_LEFT then FAngle := ANGLE_LEFTUP else FAngle := ANGLE_RIGHTUP;
- if FIncCam < 120.0 * g_dbg_scale then IncMax(FIncCam, 5, Integer(120.0 * g_dbg_scale));
+ if FIncCam < 120 then IncMax(FIncCam, 5, 120);
end;
procedure TPlayer.SetAction(Action: Byte; Force: Boolean = False);
if FMegaRulez[MR_INVUL] < gTime+PLAYER_INVUL_TIME then
begin
FMegaRulez[MR_INVUL] := gTime+PLAYER_INVUL_TIME;
+ FSpawnInvul := 0;
end;
ITEM_INVIS: