diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-05-27 16:26:01 +0200 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-05-27 16:26:01 +0200 |
commit | 8dc03eedfcf24be94f0255c0c9e055dbb83ea092 (patch) | |
tree | 4b032f5b17df8da8acb2e41de99afc78a3bcebe2 /src/gameplay.cpp | |
parent | update readme (diff) | |
download | threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.gz threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.bz2 threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.xz threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.tar.zst threshold-8dc03eedfcf24be94f0255c0c9e055dbb83ea092.zip |
less leaks and effective-c++-compatible
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r-- | src/gameplay.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
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(); } |