fixed bug with drawing tiles
This commit is contained in:
parent
68566c34e2
commit
431c29f430
2 changed files with 3 additions and 4 deletions
|
@ -375,12 +375,10 @@ void display::bounds_check_position()
|
|||
|
||||
if(zoom_ < min_zoom) {
|
||||
zoom_ = min_zoom;
|
||||
image::set_zoom(zoom_);
|
||||
}
|
||||
|
||||
if(zoom_ > max_zoom) {
|
||||
zoom_ = max_zoom;
|
||||
image::set_zoom(zoom_);
|
||||
}
|
||||
|
||||
const double xend = zoom_*map_.x()*0.75 + zoom_*0.25;
|
||||
|
@ -1449,7 +1447,7 @@ SDL_Surface* display::getTerrain(gamemap::TERRAIN terrain,image::TYPE image_type
|
|||
image += direction + ".png";
|
||||
|
||||
SDL_Surface* im = image::get_image(image,image_type);
|
||||
if(im == NULL) {
|
||||
if(im == NULL && direction.empty()) {
|
||||
im = image::get_image("terrain/" +
|
||||
map_.get_terrain_info(terrain).default_image() + ".png");
|
||||
}
|
||||
|
|
|
@ -419,7 +419,8 @@ void play_multiplayer(display& disp, game_data& units_data, config cfg,
|
|||
} else if(result < int(choices.size()/3)*2) {
|
||||
controller = "ai";
|
||||
result -= choices.size()/3;
|
||||
sides[res]->values["description"] = "";
|
||||
sides[res]->values["description"] =
|
||||
string_table["ai_controlled"];
|
||||
} else {
|
||||
controller = "network";
|
||||
result -= (choices.size()/3)*2;
|
||||
|
|
Loading…
Add table
Reference in a new issue