From e24f3c83debf0108ea4c144306f7610c5058409b Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 15 Apr 2021 18:29:32 +0200 Subject: [PATCH] fix automap --- Source/lighting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/lighting.cpp b/Source/lighting.cpp index 9cd419934..20d296d3e 100644 --- a/Source/lighting.cpp +++ b/Source/lighting.cpp @@ -678,7 +678,7 @@ void DoVision(int nXPos, int nYPos, int nRadius, bool doautomap, bool visible) if (nXPos >= 0 && nXPos <= MAXDUNX && nYPos >= 0 && nYPos <= MAXDUNY) { if (doautomap) { if (dFlags[nXPos][nYPos] >= 0) { - SetAutomapView(nXPos, nXPos); + SetAutomapView(nXPos, nYPos); } dFlags[nXPos][nYPos] |= BFLAG_EXPLORED; }