mirror missile halo when attacking leftward
This commit is contained in:
parent
e0080f9e34
commit
d9ddbad36d
1 changed files with 7 additions and 2 deletions
|
@ -317,12 +317,17 @@ bool unit_attack_ranged(display& disp, unit_map& units,
|
|||
sub_halo--; //correct frame is the previous one
|
||||
|
||||
if(sub_halo >= missile_frame.halo.size()) sub_halo = missile_frame.halo.size() -1;
|
||||
|
||||
|
||||
if(!vflip) {
|
||||
missile_halo = halo::add(posx+d+missile_frame.halo_x,
|
||||
posy+d+missile_frame.halo_y,
|
||||
missile_frame.halo[sub_halo].first,
|
||||
orientation);
|
||||
} else {
|
||||
missile_halo = halo::add(posx+d-missile_frame.halo_x,
|
||||
posy+d+missile_frame.halo_y,
|
||||
missile_frame.halo[sub_halo].first,
|
||||
orientation);
|
||||
}
|
||||
}
|
||||
missile_frame_halo = halo::add(posx+d,
|
||||
posy+d,
|
||||
|
|
Loading…
Add table
Reference in a new issue