mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
SW: Add Redux's workaround for glitchy fist HUD sprites in widescreen
git-svn-id: https://svn.eduke32.com/eduke32@8589 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9f2cb8ea0d
commit
5fdd69cbbb
1 changed files with 30 additions and 0 deletions
|
@ -7592,6 +7592,36 @@ pDisplaySprites(PLAYERp pp)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// temporary hack to fix fist artifacts until a solution is found in the panel system itself
|
||||||
|
switch (picnum)
|
||||||
|
{
|
||||||
|
case FIST_SWING0:
|
||||||
|
case FIST_SWING1:
|
||||||
|
case FIST_SWING2:
|
||||||
|
case FIST2_SWING0:
|
||||||
|
case FIST2_SWING1:
|
||||||
|
case FIST2_SWING2:
|
||||||
|
case FIST3_SWING0:
|
||||||
|
case FIST3_SWING1:
|
||||||
|
case FIST3_SWING2:
|
||||||
|
case BLOODYFIST_SWING0:
|
||||||
|
case BLOODYFIST_SWING1:
|
||||||
|
case BLOODYFIST_SWING2:
|
||||||
|
case BLOODYFIST2_SWING0:
|
||||||
|
case BLOODYFIST2_SWING1:
|
||||||
|
case BLOODYFIST2_SWING2:
|
||||||
|
case BLOODYFIST3_SWING0:
|
||||||
|
case BLOODYFIST3_SWING1:
|
||||||
|
case BLOODYFIST3_SWING2:
|
||||||
|
if (TEST(flags, BIT(2)) && x > 160)
|
||||||
|
x = 65;
|
||||||
|
else if (!TEST(flags, BIT(2)) && x < 160)
|
||||||
|
x = 345;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
rotatesprite(x << 16, y << 16,
|
rotatesprite(x << 16, y << 16,
|
||||||
psp->scale, ang,
|
psp->scale, ang,
|
||||||
picnum, shade, pal,
|
picnum, shade, pal,
|
||||||
|
|
Loading…
Reference in a new issue