oops broke encore

This commit is contained in:
Alug committed 2024-11-01 20:01:50 +01:00
1 parent c2c7381bc1
commit 9cb790ac23
1 file changed
+3 -3
+3 -3
View File
@@ -698,14 +698,14 @@ static int libd_drawOnMinimap(lua_State *L)
patchw = patchh = 0; // patch is supposedly already centered, don't butt in.
}
amnumxpos = (FixedMul(x, minimapinfo.zoom) - minimapinfo.offs_x);
amnumypos = -(FixedMul(y, minimapinfo.zoom) - minimapinfo.offs_y);
if (encoremode)
{
amnumxpos = -amnumxpos;
}
amnumxpos = (FixedMul(x, minimapinfo.zoom) - minimapinfo.offs_x);
amnumypos = -(FixedMul(y, minimapinfo.zoom) - minimapinfo.offs_y);
amxpos = amnumxpos + ((mm_x + SHORT(AutomapPic->width) / 2)<<FRACBITS) - patchw;
amypos = amnumypos + ((mm_y + SHORT(AutomapPic->height) / 2)<<FRACBITS) - patchh;