- 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

@ -423,11 +423,17 @@ void F2DDrawer::AddTexture(FGameTexture* img, DrawParms& parms)
u2 = parms.srcx + parms.srcwidth;
v2 = parms.srcy + parms.srcheight;
if (parms.flipX)
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);
};