summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f680d4)
raw | patch | inline | side by side (parent: 1f680d4)
author | binarymaster <x86corez@gmail.com> | |
Tue, 7 Mar 2017 21:50:47 +0000 (00:50 +0300) | ||
committer | binarymaster <x86corez@gmail.com> | |
Tue, 7 Mar 2017 21:50:47 +0000 (00:50 +0300) |
src/game/g_player.pas | patch | blob | history |
diff --git a/src/game/g_player.pas b/src/game/g_player.pas
index a99e5b069ef21ba255f7f4a4e08b2fe6d1b38d3c..f2a98ff8aedc6f6f86c10b39ed904677955781fc 100644 (file)
--- a/src/game/g_player.pas
+++ b/src/game/g_player.pas
var
ID: DWORD;
w, h: Word;
+ dr: Boolean;
begin
if FLive then
begin
begin
if (gPlayerDrawn <> nil) and ((Self = gPlayerDrawn) or
((FTeam = gPlayerDrawn.Team) and (gGameSettings.GameMode <> GM_DM))) then
- FModel.Draw(FObj.X, FObj.Y, 200)
+ begin
+ if (FMegaRulez[MR_INVIS] - gTime) <= 2100 then
+ dr := not Odd((FMegaRulez[MR_INVIS] - gTime) div 300)
+ else
+ dr := True;
+ if dr then
+ FModel.Draw(FObj.X, FObj.Y, 200)
+ else
+ FModel.Draw(FObj.X, FObj.Y);
+ end
else
FModel.Draw(FObj.X, FObj.Y, 254);
end