...only commited the optimization.
So now also commit the fix for bug #9314 (Search by name shows hidden
units)
The good thing is that now I spotted a little error in my previous
version of the bugfix (search didn't show allied hidden units)
If all *your* woses are hidden, tooltips of the enemies weapons didn't
show damage against woses
It can be see as a feature to confirm that all your woses are hidden,
but this info seems easier to get and less usefull than the woses
resistance. So now continue to hide resistance of hidden enemies
units but show yours
...to fix cheats spotted in bug #9288 :
detection of hidden enemies by using the hidden possibility displayed
in sidebar "hidden enemies" here means invisible, shrouded or fogged
The main use is to help fixing cheats spotted in bug #9288 But there
is some tricky problem here. For checking if we can be invisible at a
location, we check if we see visible enemies in adjacent tiles, so we
check if they are invisible there etc...
Also skip the invisible_cache in the new particular case, since
currently caching this will only helps repetitive mouse movements
after selecting a unit with invisible abilities
The main use will be to help to move/add some hard-coded values to
game_config (where we can't use the c++ #ifdef USE_TINY_GUI).
I also hope that it will allow some finer tuning about images which
looks bad/useless in tiny_gui.
I also boosted the limit of number of WML define from 4 to 5 (which
seems used only for the cache's name)
But the maximum was hit only when using MEDIUM+NORMAL+APPLE+PYTHON+TINY
...and so can be used to cheat by spying moves of invisible units.
Hopefully, these units seems to causes very rare invalidated hexes,
but hard to verify all the cases.
So now allow to use this command only in debug mode.
Currently it will be used only for the movement hint, but I choose a
general name, in case of other uses.
There is 11 colors, each one for each 10 intervals and the last one
for the maximum.
I kept my previous colors: pure yellow for 50% and subtract multiple
of 50 in red or green for other values.