Fix issue where guy dropping down, didn't hit the floor in level 1
This commit is contained in:
parent
c8f6f247d8
commit
85d60e6126
|
@ -414,7 +414,7 @@ e_them_t2_action2(ent_t* pEnt)
|
|||
pEnt->flgclmb = FALSE; /* not climbing */
|
||||
|
||||
/* calc new y (falling) and test environment */
|
||||
i = (pEnt->y << 8) + pEnt->offsy + pEnt->ylow;
|
||||
i = (((U32)pEnt->y) << 8) + pEnt->offsy + pEnt->ylow;
|
||||
y = i >> 8;
|
||||
u_envtest(pEnt->x, y, FALSE, &env0, &env1);
|
||||
if (!(env1 & (MAP_EFLG_SOLID|MAP_EFLG_SPAD|MAP_EFLG_WAYUP))) {
|
||||
|
|
Loading…
Reference in New Issue