tentative fix for halo orientation

This commit is contained in:
Jérémy Rosen 2011-06-15 20:53:14 +00:00
parent 1768ebd313
commit fe8e0b5237

View file

@ -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: