mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed offsetting for flipped 2D sprites and reverted the offset change for the trip bomb.
This commit is contained in:
parent
35327ee3aa
commit
2ea9811e0a
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue