From 3fdf53f3c1fbf58e67ab9570f035756469b99424 Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Sun, 6 Jun 2021 04:13:37 +0200 Subject: Adding Vampiric UI; Using Valgrind to fix errors --- src/Enemy2.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Enemy2.cpp') diff --git a/src/Enemy2.cpp b/src/Enemy2.cpp index e89fbb2..a32b8d9 100644 --- a/src/Enemy2.cpp +++ b/src/Enemy2.cpp @@ -21,3 +21,8 @@ void Enemy2::izracunajpoz(float igracx,float igracy,float dt) x+=vx*dt; y+=vy*dt; } +void Enemy2::respawn(int sirina,int visina) +{ + Entity::respawn(sirina,visina); + vx=vy=0; +} -- cgit v1.2.3