mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed: displaying sprites on the automap ignored both the actor's scale and translation.
This commit is contained in:
parent
75dd5503cf
commit
11c026ee84
1 changed files with 3 additions and 2 deletions
|
@ -2388,10 +2388,11 @@ void AM_drawThings ()
|
||||||
|
|
||||||
if (texture == NULL) goto drawTriangle; // fall back to standard display if no sprite can be found.
|
if (texture == NULL) goto drawTriangle; // fall back to standard display if no sprite can be found.
|
||||||
|
|
||||||
const fixed_t spriteScale = 10 * scale_mtof;
|
const fixed_t spriteXScale = FixedMul(t->scaleX, 10 * scale_mtof);
|
||||||
|
const fixed_t spriteYScale = FixedMul(t->scaleY, 10 * scale_mtof);
|
||||||
|
|
||||||
DrawMarker (texture, p.x, p.y, 0, !!(frame->Flip & (1 << rotation)),
|
DrawMarker (texture, p.x, p.y, 0, !!(frame->Flip & (1 << rotation)),
|
||||||
spriteScale, spriteScale, 0, FRACUNIT, 0, LegacyRenderStyles[STYLE_Normal]);
|
spriteXScale, spriteYScale, t->Translation, FRACUNIT, 0, LegacyRenderStyles[STYLE_Normal]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue