improved walljump abit

This commit is contained in:
Magnus Auvinen 2007-08-14 23:16:48 +00:00
parent 87ba16401b
commit c7603d55ed

View file

@ -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;
}