Merge branch 'master' of https://github.com/ralucado/WaveGGJ17
This commit is contained in:
commit
f22f7533cd
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) {
|
void Combat::updateEvents(sf::Event e) {
|
||||||
if (isPlayerOne()) {
|
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);
|
bool compasFinish = !player->event(e);
|
||||||
enemyManager(compasFinish);
|
enemyManager(compasFinish);
|
||||||
}
|
}
|
||||||
else if (!ia) {
|
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);
|
bool compasFinish = !enemy->event(e);
|
||||||
enemyManager(compasFinish);
|
enemyManager(compasFinish);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue