Fixed "wall jump" bug found by @Kikoodx

This commit is contained in:
Milang 2020-01-11 16:01:11 +01:00
parent 836dce915b
commit b65f39341d
5 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -145,7 +145,7 @@ int box_jump(box_t * b, int height)
int sgn_vy=-1*sgn(height);
if (sgn_vy)
{
for (int j=0; j<b->h; j++)
for (int j=0; j<b->w; j++)
{
int typetemp=world_get_ctg(b->x+j ,b->y+sgn_vy);
if (/*typetemp==CTG_DEATH || */typetemp==CTG_SOIL)