From 90fb1be2c0028513e0be35bc3791f426b6f500ec Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 7 Jan 2022 00:38:03 +0100 Subject: FINALLY --- src/wp_shotty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wp_shotty.cpp') diff --git a/src/wp_shotty.cpp b/src/wp_shotty.cpp index 4efb64e..23c1074 100644 --- a/src/wp_shotty.cpp +++ b/src/wp_shotty.cpp @@ -19,7 +19,6 @@ int wp_shotty::bang(std::vector * enemies, Vector2 playerDirection, Vect return (1); } else { barrel--; - std::cout << "BANG : " << barrel << "shots left" << std::endl; PlaySound(shot); // here // @@ -39,6 +38,7 @@ int wp_shotty::bang(std::vector * enemies, Vector2 playerDirection, Vect CheckCollisionPointLine((Vector2){en->posX, en->posY}, playerPosition, Vector2Add(playerPosition, r), (en->radius * 2)) || CheckCollisionPointLine((Vector2){en->posX, en->posY}, playerPosition, add2, (en->radius * 2))) { // enemy hit + std::cout << "hit" << std::endl; en->hp--; if (en->hp == 0) { -- cgit v1.2.3