more standard colors for the movement cost in unit help

1 is white(normal) instead of green. 2+ yellow and impassable is red

The previous system used yellow when only one step was possible.  Nice
idea, but not obvious to see why some units have 2 in yellow and
others not
This commit is contained in:
Ali El Gariani 2007-08-24 00:16:57 +00:00
parent f9cee783f8
commit 9e2675f492

View file

@ -1394,15 +1394,13 @@ public:
//movement - range: 1 .. 5, 99=impassable
str.str(clear_stringstream);
color = "white";
if (moves > type_.movement() ) // cannot move in this terrain
color = "red";
else if (moves > (type_.movement() / 2)) // only one step
else if (moves > 1)
color = "yellow";
else if (moves > 1)
else
color = "white";
else
color = "green";
str << "<format>color=" << color << " text='"<< moves << "'</format>";
push_tab_pair(row, str.str());