diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-14 17:40:59 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-09-14 17:40:59 -0400 |
commit | b04891e13dcb33ee8ea26470deae440d0c664420 (patch) | |
tree | 89cf2d173738925bcd788e5e0d379dc0a54bb81d /src/World.cpp | |
parent | 78bd3d738a4b1cec8bd4504a36120f5795029e8b (diff) |
cheap-excuse jump fix
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;
}
}
}
|