tentative fix for halo orientation
This commit is contained in:
parent
1768ebd313
commit
fe8e0b5237
1 changed files with 15 additions and 7 deletions
|
@ -583,21 +583,29 @@ void unit_frame::redraw(const int frame_time,bool first_time,const map_location
|
|||
break;
|
||||
case map_location::SOUTH_EAST:
|
||||
case map_location::SOUTH:
|
||||
if(!current_data.auto_vflip) {
|
||||
orientation = halo::NORMAL;
|
||||
} else {
|
||||
if(current_data.auto_vflip) {
|
||||
orientation = halo::VREVERSE;
|
||||
} else {
|
||||
orientation = halo::NORMAL;
|
||||
}
|
||||
break;
|
||||
case map_location::SOUTH_WEST:
|
||||
if(!current_data.auto_hflip) {
|
||||
orientation = halo::HREVERSE;
|
||||
} else {
|
||||
if(current_data.auto_hflip && current_data.auto_hflip) {
|
||||
orientation = halo::HVREVERSE;
|
||||
} else if(current_data.auto_hflip){
|
||||
orientation = halo::HREVERSE;
|
||||
} else if(current_data.auto_vflip){
|
||||
orientation = halo::VREVERSE;
|
||||
} else {
|
||||
orientation = halo::NORMAL;
|
||||
}
|
||||
break;
|
||||
case map_location::NORTH_WEST:
|
||||
orientation = halo::HREVERSE;
|
||||
if(current_data.auto_hflip) {
|
||||
orientation = halo::HREVERSE;
|
||||
} else {
|
||||
orientation = halo::NORMAL;
|
||||
}
|
||||
break;
|
||||
case map_location::NDIRECTIONS:
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue