- fixed offsetting for flipped 2D sprites and reverted the offset change for the trip bomb.

This commit is contained in:
Christoph Oelckers 2020-07-26 08:08:15 +02:00
parent 35327ee3aa
commit 2ea9811e0a
2 changed files with 8 additions and 2 deletions

View file

@ -424,10 +424,16 @@ void F2DDrawer::AddTexture(FGameTexture* img, DrawParms& parms)
v2 = parms.srcy + parms.srcheight;
if (parms.flipX)
{
std::swap(u1, u2);
parms.left = parms.texwidth - parms.left;
}
if (parms.flipY)
{
std::swap(v1, v2);
parms.top = parms.texheight - parms.top;
}
if (parms.rotateangle == 0)
{

View file

@ -436,7 +436,7 @@ void displayweapon_d(int snum)
hud_drawpal(weapon_xoffset + 130 - (p->getlookang() >> 1),
looking_arc + 249 - gun_pos,
HANDHOLDINGLASER + (p->kickback_pic >> 2), gs, o, pal);
hud_drawpal(weapon_xoffset + 328 - (p->getlookang() >> 1),
hud_drawpal(weapon_xoffset + 152 - (p->getlookang() >> 1),
looking_arc + 249 - gun_pos,
HANDHOLDINGLASER + (p->kickback_pic >> 2), gs, o | 4, pal);
};