diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-21 08:17:06 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-03-21 08:17:06 -0400 |
commit | 51c6e601c3d6451294506b72213244e3aee9822f (patch) | |
tree | ff811ba8bec3c207eacd126f6e5e3764abca8a70 /src/entities.cpp | |
parent | bbdc924d409f74594bd8c8b0d4bf55d5e5f32209 (diff) | |
parent | 8dae5eeac2c6254bb8288c0479c193ab185a312f (diff) |
Created currency and new inventory
Diffstat (limited to 'src/entities.cpp')
-rw-r--r-- | src/entities.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/entities.cpp b/src/entities.cpp index 6d0f052..c047eff 100644 --- a/src/entities.cpp +++ b/src/entities.cpp @@ -581,17 +581,19 @@ void Mob::wander(int timeRun){ if(aggressive && !YAYA && player->loc.x + (width / 2) > loc.x && player->loc.x + (width / 2) < loc.x + width && player->loc.y + (height / 3) > loc.y && player->loc.y + (height / 3) < loc.y + height ){ - Arena *a = new Arena(currentWorld,player,this); - a->setStyle(""); - a->setBackground( WorldBGType::Forest ); - a->setBGM("assets/music/embark.wav"); + if ( !ui::dialogBoxExists ) { + Arena *a = new Arena(currentWorld,player,this); + a->setStyle(""); + a->setBackground( WorldBGType::Forest ); + a->setBGM("assets/music/embark.wav"); - ui::toggleWhiteFast(); - YAYA = true; - ui::waitForCover(); - YAYA = false; - currentWorld = a; - ui::toggleWhiteFast(); + ui::toggleWhiteFast(); + YAYA = true; + ui::waitForCover(); + YAYA = false; + currentWorld = a; + ui::toggleWhiteFast(); + } } switch(subtype){ |