mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +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
|
@ -424,10 +424,16 @@ void F2DDrawer::AddTexture(FGameTexture* img, DrawParms& parms)
|
||||||
v2 = parms.srcy + parms.srcheight;
|
v2 = parms.srcy + parms.srcheight;
|
||||||
|
|
||||||
if (parms.flipX)
|
if (parms.flipX)
|
||||||
|
{
|
||||||
std::swap(u1, u2);
|
std::swap(u1, u2);
|
||||||
|
parms.left = parms.texwidth - parms.left;
|
||||||
|
}
|
||||||
|
|
||||||
if (parms.flipY)
|
if (parms.flipY)
|
||||||
|
{
|
||||||
std::swap(v1, v2);
|
std::swap(v1, v2);
|
||||||
|
parms.top = parms.texheight - parms.top;
|
||||||
|
}
|
||||||
|
|
||||||
if (parms.rotateangle == 0)
|
if (parms.rotateangle == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -436,7 +436,7 @@ void displayweapon_d(int snum)
|
||||||
hud_drawpal(weapon_xoffset + 130 - (p->getlookang() >> 1),
|
hud_drawpal(weapon_xoffset + 130 - (p->getlookang() >> 1),
|
||||||
looking_arc + 249 - gun_pos,
|
looking_arc + 249 - gun_pos,
|
||||||
HANDHOLDINGLASER + (p->kickback_pic >> 2), gs, o, pal);
|
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,
|
looking_arc + 249 - gun_pos,
|
||||||
HANDHOLDINGLASER + (p->kickback_pic >> 2), gs, o | 4, pal);
|
HANDHOLDINGLASER + (p->kickback_pic >> 2), gs, o | 4, pal);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue