aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authordrumsetmonkey <abelleisle@roadrunner.com>2016-03-21 08:17:06 -0400
committerdrumsetmonkey <abelleisle@roadrunner.com>2016-03-21 08:17:06 -0400
commit51c6e601c3d6451294506b72213244e3aee9822f (patch)
treeff811ba8bec3c207eacd126f6e5e3764abca8a70 /src/entities.cpp
parentbbdc924d409f74594bd8c8b0d4bf55d5e5f32209 (diff)
parent8dae5eeac2c6254bb8288c0479c193ab185a312f (diff)
Created currency and new inventory
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp22
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){