diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-12 21:22:16 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-12 21:22:16 -0400 |
commit | 930de7158b1d94b49334f33c915cd9e8712190ed (patch) | |
tree | 160c9460e700fe9b130c2e9d00e96843467611a7 /src | |
parent | 328a35846f24aa61524e27d7a08f99617f1b0e55 (diff) |
yay
Diffstat (limited to 'src')
-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(); |