diff --git a/src/hardware/hw_draw.c b/src/hardware/hw_draw.c index b26eaa2c2..d4ba78614 100644 --- a/src/hardware/hw_draw.c +++ b/src/hardware/hw_draw.c @@ -267,8 +267,8 @@ void HWR_DrawStretchyFixedPatch(patch_t *gpatch, fixed_t x, fixed_t y, fixed_t p cx = cx1; cy = cy1; - fwidth = cx2 - cx1; - fheight = cy2 - cy1; + fwidth = fmaxf(0.0f, cx2 - cx1); + fheight = fmaxf(0.0f, cy2 - cy1); } // positions of the cx, cy, are between 0 and vid.width/vid.height now, we need them to be between -1 and 1 diff --git a/src/p_user.c b/src/p_user.c index 6a0b7cbf3..877ae1ed5 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1125,7 +1125,7 @@ mobj_t *P_SpawnGhostMobj(mobj_t *mobj) ghost->spriteyoffset = mobj->spriteyoffset; if (mobj->flags2 & MF2_OBJECTFLIP) - ghost->flags |= MF2_OBJECTFLIP; + ghost->flags2 |= MF2_OBJECTFLIP; if (!(mobj->flags & MF_DONTENCOREMAP)) ghost->flags &= ~MF_DONTENCOREMAP; @@ -1978,9 +1978,7 @@ static void P_3dMovement(player_t *player) else if (player->onconveyor == 4 && !P_IsObjectOnGround(player->mo)) // Actual conveyor belt player->cmomx = player->cmomy = 0; else if (player->onconveyor != 2 && player->onconveyor != 4 -#ifdef POLYOBJECTS && player->onconveyor != 1 -#endif ) player->cmomx = player->cmomy = 0;