bug
This commit is contained in:
parent
8cf4c302fe
commit
e6c7ea3e9a
@ -105,10 +105,10 @@ bool Game::manageInvaders(){
|
|||||||
void Game::remCollidingProjectiles(){
|
void Game::remCollidingProjectiles(){
|
||||||
|
|
||||||
auto miss = missiles.begin();
|
auto miss = missiles.begin();
|
||||||
auto tor = torpedos.begin();
|
|
||||||
|
|
||||||
while(miss != missiles.end()){
|
while(miss != missiles.end()){
|
||||||
bool wasColliding = false;
|
bool wasColliding = false;
|
||||||
|
auto tor = torpedos.begin();
|
||||||
while(tor != torpedos.end()){
|
while(tor != torpedos.end()){
|
||||||
|
|
||||||
// missiles can't be right under torpedos, so that must means they are colliding in Y
|
// missiles can't be right under torpedos, so that must means they are colliding in Y
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user