diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-14 23:16:48 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-08-14 23:16:48 +0000 |
| commit | c7603d55edf01f6c836d6bc1472530dc7ca77756 (patch) | |
| tree | 102759aa6fd5188e03bcbe41a5e3d86b4e07ff04 /src | |
| parent | 87ba16401b5576a5f3f9627688903740156a362f (diff) | |
| download | zcatch-c7603d55edf01f6c836d6bc1472530dc7ca77756.tar.gz zcatch-c7603d55edf01f6c836d6bc1472530dc7ca77756.zip | |
improved walljump abit
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/server/game_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/server/game_server.cpp b/src/game/server/game_server.cpp index 7d41f540..ddb3d9ab 100644 --- a/src/game/server/game_server.cpp +++ b/src/game/server/game_server.cpp @@ -1201,9 +1201,9 @@ void player::tick() if(!grounded && vel.y > 0) { - if(input.left && col_check_point((int)(pos.x-phys_size/2)-4, (int)(pos.y))) + if(col_check_point((int)(pos.x-phys_size/2)-4, (int)(pos.y))) wall_sliding = -1; - if(input.right && col_check_point((int)(pos.x+phys_size/2)+4, (int)(pos.y))) + if(col_check_point((int)(pos.x+phys_size/2)+4, (int)(pos.y))) wall_sliding = 1; } |