aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.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/gameplay.cpp
parentbbdc924d409f74594bd8c8b0d4bf55d5e5f32209 (diff)
parent8dae5eeac2c6254bb8288c0479c193ab185a312f (diff)
Created currency and new inventory
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index 7d52629..075aec3 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -9,7 +9,6 @@ using namespace tinyxml2;
extern Player *player; // main.cpp
extern World *currentWorld; // main.cpp
-extern float shit;
extern Menu *currentMenu;
extern Menu pauseMenu;
extern Menu optionsMenu;
@@ -23,7 +22,7 @@ std::vector<XMLElement *> dopt;
void destroyEverything(void);
-void segFault(){
+inline void segFault() {
(*((int *)NULL))++;
}
@@ -210,6 +209,21 @@ CONT:
return 0;
}
+void commonPageFunc( Mob *callee )
+{
+ static bool lock = false;
+
+ if ( !lock ) {
+ lock = true;
+
+ ui::drawPage( callee->heyid );
+ ui::waitForDialog();
+
+ callee->alive = false;
+ lock = false;
+ }
+}
+
void commonTriggerFunc(Mob *callee){
static bool lock = false;
XMLDocument xml;