From 6a9453f8c96c137d088ddc32d718074694606e47 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Feb 2018 23:04:41 +0100 Subject: [PATCH] added attack animations when attacking trees and mirrors --- game.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/game.cpp b/game.cpp index 64dae792..a6d959d5 100644 --- a/game.cpp +++ b/game.cpp @@ -7455,6 +7455,7 @@ bool movepcto(int d, int subdir, bool checkonly) { playSound(c2, "hit-axe" + pick123()); c2->wall = waNone; sideAttack(cwt.c, d, moPlayer, 0); + animateAttack(cwt.c, c2, LAYER_SMALL); } else if(c2->wall == waBigTree) { drawParticles(c2, winf[c2->wall].color, 8); @@ -7462,11 +7463,13 @@ bool movepcto(int d, int subdir, bool checkonly) { playSound(c2, "hit-axe" + pick123()); c2->wall = waSmallTree; sideAttack(cwt.c, d, moPlayer, 0); + animateAttack(cwt.c, c2, LAYER_SMALL); } else { if(!peace::on) { addMessage(XLAT("You swing your sword at the mirror.")); sideAttack(cwt.c, d, moPlayer, 0); + animateAttack(cwt.c, c2, LAYER_SMALL); } } if(survivalist && isHaunted(c2->land))