diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 34ab268be..9d6362c5c 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -4920,11 +4920,11 @@ static void HWR_ProjectSprite(mobj_t *thing) if (thing->renderflags & RF_ABSOLUTEOFFSETS) { - spr_offset = interp.spritexoffset; + spr_offset = FixedDiv(interp.spritexoffset,highresscale); #ifdef ROTSPRITE - spr_topoffset = (interp.spriteyoffset + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)); + spr_topoffset = (FixedDiv(interp.spriteyoffset,highresscale) + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)); #else - spr_topoffset = interp.spriteyoffset; + spr_topoffset = FixedDiv(interp.spriteyoffset,highresscale); #endif } else diff --git a/src/r_things.cpp b/src/r_things.cpp index bac424e52..e5309cf3a 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -1968,11 +1968,11 @@ static void R_ProjectSprite(mobj_t *thing) if (thing->renderflags & RF_ABSOLUTEOFFSETS) { - spr_offset = interp.spritexoffset; + spr_offset = FixedDiv(interp.spritexoffset, highresscale); #ifdef ROTSPRITE - spr_topoffset = (interp.spriteyoffset + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)); + spr_topoffset = (FixedDiv(interp.spriteyoffset, highresscale) + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)); #else - spr_topoffset = interp.spriteyoffset; + spr_topoffset = FixedDiv(interp.spriteyoffset, highresscale); #endif } else @@ -1984,7 +1984,7 @@ static void R_ProjectSprite(mobj_t *thing) spr_offset += FixedDiv(interp.spritexoffset, highresscale) * flipoffset; #ifdef ROTSPRITE - spr_topoffset += (FixedDiv(interp.spritexoffset, highresscale) + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)) * flipoffset; + spr_topoffset += (FixedDiv(interp.spriteyoffset, highresscale) + FixedDiv((visoffs.y * visoffymul), mapobjectscale) + (rotoffset.y * visoffymul)) * flipoffset; #else spr_topoffset += FixedDiv(interp.spriteyoffset, highresscale) * flipoffset; #endif