Commit 39ac4bc8 authored by Dino Bollinger's avatar Dino Bollinger
Browse files

Duke3D: Replace klabs(x) with max(0, x) in overhead sprite computation

Fixes #139
parent 458cfc8e
......@@ -610,7 +610,7 @@ static void G_DrawOverheadMap(int32_t cposx, int32_t cposy, int32_t czoom, int16
if (i < 0)
continue;
j = klabs(pPlayer->truefz - pPlayer->pos.z) >> 8;
j = max(0, pPlayer->truefz - pPlayer->pos.z) >> 8;
j = mulscale16(czoom * (pSprite->yrepeat + j), yxaspect);
if (j < 22000) j = 22000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment