From b0099fc513cdfa203434f24cc0ad5d9644b7acfc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 25 Nov 2021 08:06:05 +0100 Subject: [PATCH] - math errors? --- source/core/automap.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/core/automap.cpp b/source/core/automap.cpp index 8f3f2e0f2..2b89af4bc 100644 --- a/source/core/automap.cpp +++ b/source/core/automap.cpp @@ -535,14 +535,14 @@ void DrawPlayerArrow(int cposx, int cposy, int cang, int pl_x, int pl_y, int zoo { int px1 = DMulScale(arrow[i], pxvect, -arrow[i+1], pyvect, 16); - int py1 = DMulScale(arrow[i+1], pxvect, arrow[i], pyvect, 16) + (height << 11); + int py1 = DMulScale(arrow[i + 1], pxvect, arrow[i], pyvect, 16);// +(height << 11); int px2 = DMulScale(arrow[i+2], pxvect, -arrow[i + 3], pyvect, 16); - int py2 = DMulScale(arrow[i + 3], pxvect, arrow[i+2], pyvect, 16) + (height << 11); + int py2 = DMulScale(arrow[i + 3], pxvect, arrow[i + 2], pyvect, 16);// +(height << 11); int ox1 = px1 - cposx; - int oy1 = py1 - cposx; + int oy1 = py1 - cposy; int ox2 = px2 - cposx; - int oy2 = py2 - cposx; + int oy2 = py2 - cposy; int sx1 = DMulScale(ox1, xvect, -oy1, yvect, 16) + (width << 11); int sy1 = DMulScale(oy1, xvect, ox1, yvect, 16) + (height << 11);