Replace magic number 352 with VIEWPORT_HEIGHT (#1232)

This commit is contained in:
Manuel K
2019-06-02 17:51:33 +01:00
committed by Anders Jenbo
parent bac8701ad7
commit 896933f55e
13 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ void DrawAutomap()
return;
}
gpBufEnd = (unsigned char *)&gpBuffer[(352 + 160) * 768];
gpBufEnd = (unsigned char *)&gpBuffer[(VIEWPORT_HEIGHT + 160) * 768];
MapX = (ViewX - 16) >> 1;
while (MapX + AutoMapXOfs < 0)