mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
improved walljump abit
This commit is contained in:
parent
87ba16401b
commit
c7603d55ed
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue