Skip to content

Commit aa8e20a

Browse files
florianesslGhabry
authored andcommitted
Flip the X coordinates when the battle animation is inverted
Fixes the attack animations used by the "Zyklop" in Wolfenhain. Fix #3417
1 parent cede2b8 commit aa8e20a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/battle_animation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void BattleAnimation::DrawAt(Bitmap& dst, int x, int y) {
109109
continue;
110110
}
111111

112-
SetX(cell.x + x);
112+
SetX(invert ? x - cell.x : cell.x + x);
113113
SetY(cell.y + y);
114114
int sx = cell.cell_id % 5;
115115
int sy = cell.cell_id / 5;

0 commit comments

Comments
 (0)