From 1b2510a427cea42e6381d60f434b5fdec2b181b0 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 17 Dec 2015 20:33:50 -0500 Subject: fork tests, revised song --- src/entities.cpp | 8 +++++++- src/gameplay.cpp | 1 + src/ui.cpp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') 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 #include +#include + 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: diff --git a/src/gameplay.cpp b/src/gameplay.cpp index 2361029..ba2c8d9 100644 --- a/src/gameplay.cpp +++ b/src/gameplay.cpp @@ -42,6 +42,7 @@ float gen_worldSpawnHill3(float x){ */ void worldSpawnHill1_hillBlock(Mob *callee){ + std::cout<<"oi"; player->vel.x = 0; player->loc.x = callee->loc.x + callee->width; ui::dialogBox(player->name,NULL,false,"This hill seems to steep to climb up..."); diff --git a/src/ui.cpp b/src/ui.cpp index 08f503f..6069ef9 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -512,7 +512,7 @@ namespace ui { glVertex2f(x+1+SCREEN_WIDTH-HLINE*16,y+1); glVertex2f(x+1+SCREEN_WIDTH-HLINE*16,y-1-SCREEN_HEIGHT/4); glVertex2f(x-1 ,y-1-SCREEN_HEIGHT/4); - glVertex2f(x-1 ,y+2); + glVertex2f(x ,y+1); glEnd(); glColor3ub(0,0,0); -- cgit v1.2.3