For tiny gui, better fix for the height_adjust bug.

Now this data is halved when read from terrain
This commit is contained in:
Ali El Gariani 2007-04-04 20:20:49 +00:00
parent 93d60a4c14
commit f5ba8576fb

View File

@ -95,6 +95,9 @@ terrain_type::terrain_type(const config& cfg)
height_adjust_ = atoi(cfg["unit_height_adjust"].c_str()) + 16;
submerge_ = atof(cfg["submerge"].c_str());
#ifdef USE_TINY_GUI
height_adjust_ /= 2;
#endif
light_modification_ = atoi(cfg["light"].c_str());
if (cfg["heals"] == "true") {