diff options
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp index 41649d9..bde35de 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -104,6 +104,7 @@ LOOP2: // Should be in furthest back layer once this is first rea }
}
}
+extern World *spawn;
void World::detect(vec2 *v,vec2 *vel,const float width){
unsigned int i;
for(i=0;i<lineCount-10;i++){ // For every line in world
@@ -117,7 +118,7 @@ void World::detect(vec2 *v,vec2 *vel,const float width){ }
}
if(v->y>line[i].start+HLINE){ // Trashy gravity handling
- vel->y-=.0000001;
+ vel->y-=this==spawn?.0000001:.0000003;
}
}
}
|