# HG changeset patch # User Wuzzy # Date 1518645815 -3600 # Node ID 876b1ef831919ed97269ca9bc0415e719fcdc583 # Parent c5529aabdda937b2b97c5a45652f990379cca611 Fix some consistency issues with change hog tags control diff -r c5529aabdda9 -r 876b1ef83191 README.md --- a/README.md Wed Feb 14 22:56:32 2018 +0100 +++ b/README.md Wed Feb 14 23:03:35 2018 +0100 @@ -75,8 +75,8 @@ These are lesser-known controls of Hedgewars, they are based on your configured controls: -* Precise + Change hedgehog tags: Toggle hedgehog tag translucency -* Switch + Change hedgehog tags: Turn all hedgehog tags on and off +* Precise + Change hedgehog tags: Turn all hedgehog tags on and off +* Switch + Change hedgehog tags: Toggle hedgehog tag translucency * Precise + Toggle team bars + Switch: Toggle HUD * Precise + Capture (screenshot key): Save current map + mask into Screenshot directory diff -r c5529aabdda9 -r 876b1ef83191 hedgewars/uCommandHandlers.pas --- a/hedgewars/uCommandHandlers.pas Wed Feb 14 22:56:32 2018 +0100 +++ b/hedgewars/uCommandHandlers.pas Wed Feb 14 23:03:35 2018 +0100 @@ -628,9 +628,15 @@ // Rotate Tags key + Switch: Toggle translucency only if LocalMessage and gmSwitch = gmSwitch then if ((cTagsMask and htTransparent) = 0) then - cTagsMask:= cTagsMask or htTransparent + begin + cTagsMask:= cTagsMask or htTransparent; + cPrevTagsMask:= cPrevTagsMask or htTransparent + end else - cTagsMask:= cTagsMask and (not htTransparent) + begin + cTagsMask:= cTagsMask and (not htTransparent); + cPrevTagsMask:= cPrevTagsMask and (not htTransparent) + end // Rotate Tags key + Precise: Toggle all tags on and off else if LocalMessage and gmPrecise = gmPrecise then if ((cTagsMask and (htTeamName or htName or htHealth)) = 0) then