diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 13 |
1 files changed, 1 insertions, 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(); |