]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
world
authorClyne Sullivan <tullivan99@gmail.com>
Sat, 12 Sep 2015 17:39:24 +0000 (13:39 -0400)
committerClyne Sullivan <tullivan99@gmail.com>
Sat, 12 Sep 2015 17:39:24 +0000 (13:39 -0400)
src/World.cpp

index f6bb70eecccd8c7e3be1a1c39fb33cec7c5e0adc..c588d444e140a11ef515af88cc004248b0873857 100644 (file)
@@ -38,7 +38,7 @@ World::World(const float width,World *l,World *r){
        line[0].start=(grand()%100)/100.0f-0.8f; // lazy\r
        if(line[0].start>-0.5f)line[0].start=-0.7f;\r
        for(i=10;i<lineCount;i+=10){ \r
-               line[i].start=((double)(grand()%40+200))/1000.0f-1;\r
+               line[i].start=((double)((grand()%50)+400))/1000.0f-1;\r
        }\r
        for(i=0;i<lineCount;i++){\r
                if(!(i%10)||!i){\r