mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 00:23:18 +00:00
Fixed bug #12658 : new forest being drawn on top of units.
This commit is contained in:
parent
530d7cedf3
commit
5b570f0f6a
@ -42,7 +42,7 @@
|
||||
[image]
|
||||
name={TILE}
|
||||
position=vertical
|
||||
base=90, 108
|
||||
base=90,144
|
||||
[/image]
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
[image]
|
||||
name={TILE}
|
||||
position=vertical
|
||||
base=90, 108
|
||||
base=90,144
|
||||
[/image]
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
[image]
|
||||
name={TILE}
|
||||
position=vertical
|
||||
base=90, 108
|
||||
base=90,144
|
||||
[/image]
|
||||
|
||||
|
||||
@ -150,7 +150,7 @@
|
||||
[image]
|
||||
name={TILE}-@R0
|
||||
position=vertical
|
||||
base=90, 108
|
||||
base=90,144
|
||||
[/image]
|
||||
|
||||
|
||||
@ -190,7 +190,7 @@
|
||||
[image]
|
||||
name={TILE}
|
||||
position=vertical
|
||||
base=90, 108
|
||||
base=90,144
|
||||
[/image]
|
||||
|
||||
|
||||
|
@ -371,6 +371,9 @@ terrain_builder::terrain_constraint terrain_builder::rotate(const terrain_builde
|
||||
|
||||
itor->basex = int(rx + rule_image::TILEWIDTH/2);
|
||||
itor->basey = int(ry + rule_image::TILEWIDTH/2);
|
||||
|
||||
//std::cerr << "Rotation: from " << vx << ", " << vy << " to " << itor->basex <<
|
||||
// ", " << itor->basey << "\n";
|
||||
}
|
||||
|
||||
return ret;
|
||||
@ -544,7 +547,7 @@ void terrain_builder::add_constraints(
|
||||
if(!type.empty())
|
||||
constraints[loc].terrain_types = type;
|
||||
|
||||
int x = loc.x * rule_image::TILEWIDTH / 2;
|
||||
int x = loc.x * rule_image::TILEWIDTH * 3 / 4;
|
||||
int y = loc.y * rule_image::TILEWIDTH + (loc.x % 2) *
|
||||
rule_image::TILEWIDTH / 2;
|
||||
add_images_from_config(constraints[loc].images, global_images, true, x, y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user