fixed waves. AGAIN.
This commit is contained in:
parent
c53d63b45b
commit
3134dac3c5
1 changed files with 2 additions and 2 deletions
|
@ -141,12 +141,12 @@ void Combat::draw(sf::RenderWindow *window) {
|
|||
|
||||
void Combat::updateEvents(sf::Event e) {
|
||||
if (isPlayerOne()) {
|
||||
if(e.type == sf::Event::KeyPressed && e.key.code == sf::Keyboard::C && !attacking) doMahWaves(!playerOneTurn);
|
||||
if(e.type == sf::Event::KeyPressed && e.key.code == sf::Keyboard::C && !isAttack()) doMahWaves(!isPlayerOne());
|
||||
bool compasFinish = !player->event(e);
|
||||
enemyManager(compasFinish);
|
||||
}
|
||||
else if (!ia) {
|
||||
if(e.type == sf::Event::KeyPressed && e.key.code == sf::Keyboard::C && !attacking) doMahWaves(!playerOneTurn);
|
||||
if(e.type == sf::Event::KeyPressed && e.key.code == sf::Keyboard::C && !isAttack()) doMahWaves(!isPlayerOne());
|
||||
bool compasFinish = !enemy->event(e);
|
||||
enemyManager(compasFinish);
|
||||
}
|
||||
|
|
Reference in a new issue