From 8dc03eedfcf24be94f0255c0c9e055dbb83ea092 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Fri, 27 May 2022 16:26:01 +0200 Subject: less leaks and effective-c++-compatible --- src/gameplay.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/gameplay.cpp') diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 0e089ad..b42daee 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -168,10 +168,6 @@ void Game::draw() { i++) { // draw weapon ammo DrawRectangle(40 + (i * 20), SCREENHEIGHT - 60, 10, 30, RED); } - - for (auto& pr : *projectiles) { - DrawCircle(pr.posX, pr.posY, pr.radius, COOLPURPLE); - } } // progress the game & check for player death @@ -333,9 +329,6 @@ int Game::shoot() const { return (0); } player->currentWeapon->bang(enemies, player); - if (player->currentWeapon->hasProjectiles) { - projectiles->push_back(player->currentWeapon->getProjectile()); - } if (player->currentWeapon->empty == true) { player->reloadTime = GetTime(); } -- cgit v1.2.3