aboutsummaryrefslogtreecommitdiffstats
path: root/src/entities.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-12-17 20:33:50 -0500
committerClyne Sullivan <tullivan99@gmail.com>2015-12-17 20:33:50 -0500
commit1b2510a427cea42e6381d60f434b5fdec2b181b0 (patch)
tree7603c7e2ad6ef38b76cb507a18855377626667ce /src/entities.cpp
parentd9d66652af66fc824588176e5ce1136ea9965925 (diff)
fork tests, revised song
Diffstat (limited to 'src/entities.cpp')
-rw-r--r--src/entities.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/entities.cpp b/src/entities.cpp
index 7cd413c..c307a31 100644
--- a/src/entities.cpp
+++ b/src/entities.cpp
@@ -1,6 +1,8 @@
#include <entities.h>
#include <ui.h>
+#include <unistd.h>
+
extern FILE* names;
extern unsigned int loops;
@@ -462,7 +464,11 @@ void Mob::wander(int timeRun){
case MS_TRIGGER:
if(player->loc.x + player->width / 2 > loc.x &&
player->loc.x + player->width / 2 < loc.x + width ){
- hey(this);
+ //if(!vfork()){
+ hey(this);
+ /*_exit(0);
+ }*/
+
}
break;
case MS_DOOR: