mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 06:41:20 +00:00
fix directional_x working backward
This commit is contained in:
parent
7a03fa6bb5
commit
91cdd411ef
@ -555,9 +555,9 @@ void unit_frame::redraw(const int frame_time,bool first_time,const map_location
|
||||
int my_x = x + current_data.x- image->w/2;
|
||||
int my_y = y + current_data.y- image->h/2;
|
||||
if(facing_west) {
|
||||
my_x += current_data.directional_x;
|
||||
} else {
|
||||
my_x -= current_data.directional_x;
|
||||
} else {
|
||||
my_x += current_data.directional_x;
|
||||
}
|
||||
if(facing_north) {
|
||||
my_y += current_data.directional_y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user