This commit is contained in:
Thomas R 2022-01-12 20:07:57 +01:00
parent 8cf4c302fe
commit e6c7ea3e9a
No known key found for this signature in database
GPG Key ID: E538821A6CDFDAD7

View File

@ -105,10 +105,10 @@ bool Game::manageInvaders(){
void Game::remCollidingProjectiles(){
auto miss = missiles.begin();
auto tor = torpedos.begin();
while(miss != missiles.end()){
bool wasColliding = false;
auto tor = torpedos.begin();
while(tor != torpedos.end()){
// missiles can't be right under torpedos, so that must means they are colliding in Y