Fix issue where guy dropping down, didn't hit the floor in level 1

This commit is contained in:
dwsJason 2018-11-25 21:23:12 -05:00
parent c8f6f247d8
commit 85d60e6126
1 changed files with 1 additions and 1 deletions

View File

@ -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))) {