diff --git a/rogueviz/ru/entity.cpp b/rogueviz/ru/entity.cpp index 0db69a0a..ffe5935c 100644 --- a/rogueviz/ru/entity.cpp +++ b/rogueviz/ru/entity.cpp @@ -528,6 +528,7 @@ void snake::act() { void snake::attacked(int dmg) { enemy::attacked(dmg); + dir *= -1; if(where.x < m.where.x) vel.x = -abs(vel.x); if(where.x > m.where.x) vel.x = +abs(vel.x); }