]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
yay
authorClyne Sullivan <tullivan99@gmail.com>
Sun, 13 Sep 2015 01:22:16 +0000 (21:22 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Sun, 13 Sep 2015 01:22:16 +0000 (21:22 -0400)
src/main.cpp

index 4e431052de8d443d0e18d08e9ed9635171f47722..93f7da171cc9dd7b37f1f6ce412129d8036682bd 100644 (file)
@@ -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();