Fix hittig precise+rottags the first time when all tags started off showing health tag in gfInvulnerable
--- a/hedgewars/uCommandHandlers.pas Thu Feb 15 21:39:10 2018 +0100
+++ b/hedgewars/uCommandHandlers.pas Thu Feb 15 21:47:31 2018 +0100
@@ -649,7 +649,11 @@
// Rotate Tags key only: Toggle all hog tags on and off
else
if ((cTagsMask and (htTeamName or htName or htHealth)) = 0) then
- cTagsMask:= cPrevTagsMask
+ begin
+ cTagsMask:= cPrevTagsMask;
+ if ((GameFlags and gfInvulnerable) <> 0) then
+ cTagsMask:= cTagsMask and (not htHealth);
+ end
else
begin
cPrevTagsMask:= cTagsMask;