From 930de7158b1d94b49334f33c915cd9e8712190ed Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 12 Sep 2015 21:22:16 -0400 Subject: yay --- src/main.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e43105..93f7da1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,16 +24,6 @@ Structures build; UIClass ui; //Yep World *currentWorld;//u-huh -//static int randNext=1; - -void irand(unsigned int seed){ - srand(seed); -} - -int grand(void){ - return rand(); -} - void logic(); void render(); @@ -78,13 +68,11 @@ int main(int argc,char **argv){ **************************/ irand(time(NULL)); - entPlay = &player; entPlay->spawn(0, 0); build.spawn(-1, (grand()%20)-10, 0); - // Generate the world World *w=NULL,*w2=NULL; w2=new World(4,w,NULL); @@ -96,6 +84,7 @@ int main(int argc,char **argv){ float gw; + while(gameRunning){ prevTime = currentTime; currentTime = SDL_GetTicks(); -- cgit v1.2.3