Don't show hog health in gfInvulnerable mode
authorWuzzy <Wuzzy2@mail.ru>
Mon, 08 Apr 2019 14:55:52 +0200
changeset 14771 cbdfc5b1d5b8
parent 14770 ba8dd081359d
child 14772 458a8c4e65ca
Don't show hog health in gfInvulnerable mode
ChangeLog.txt
hedgewars/uWorld.pas
--- a/ChangeLog.txt	Mon Apr 08 03:15:34 2019 +0200
+++ b/ChangeLog.txt	Mon Apr 08 14:55:52 2019 +0200
@@ -67,6 +67,7 @@
  + Colorize switching arrows, pointing arrow and target cross in clan color
  + Skip ammo menu animation when playing with turn time of 10s or less
  + Don't show crate spawn message for initial crates in missions
+ + Don't show hedgehog health if “invulnerable” game modifier is active
  + Display player name of own teams in online games
  * Black clan color can now be used without visual problems
  * Fix last 2 characters in demo chat being missing
--- a/hedgewars/uWorld.pas	Mon Apr 08 03:15:34 2019 +0200
+++ b/hedgewars/uWorld.pas	Mon Apr 08 14:55:52 2019 +0200
@@ -166,6 +166,9 @@
     CurrentTeam:= ClansArray[0]^.Teams[0];
     end;
 
+if (GameFlags and gfInvulnerable) <> 0 then
+    cTagsMask:= cTagsMask and (not htHealth);
+
 // if special game flags/settings are changed, add them to the game mode notice window and then show it
 g:= ''; // no text/things to note yet