Skip to content

Commit

Permalink
Fixed: jDoom64 - Unmaker powerups drawn incorrectly in the automap.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Jun 1, 2008
1 parent 3e0553b commit 8742c43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doomsday/plugins/common/src/am_map.c
Expand Up @@ -3141,6 +3141,7 @@ static void setupGLStateForMap(void)
CLAMP(iconAlpha, 0.0f, 0.5f);

spacing = win->height / num;
y = 0;

for(i = 0; i < NUMARTIFACTS; ++i)
{
Expand All @@ -3151,7 +3152,6 @@ static void setupGLStateForMap(void)

scale = win->height / (sprInfo.height * num);
x = win->width - sprInfo.width * scale;
y = 0;
w = sprInfo.width;
h = sprInfo.height;

Expand All @@ -3160,8 +3160,8 @@ static void setupGLStateForMap(void)

// Let's calculate texture coordinates.
// To remove a possible edge artifact, move the corner a bit up/left.
s = sprInfo.offset - 0.4f / M_CeilPow2(w);
t = sprInfo.topOffset - 0.4f / M_CeilPow2(h);
s = (w - 0.4f) / M_CeilPow2(w);
t = (h - 0.4f) / M_CeilPow2(h);

DGL_Color4f(1, 1, 1, iconAlpha);
DGL_Begin(DGL_QUADS);
Expand Down

0 comments on commit 8742c43

Please sign in to comment.