From 2101728255c8f4da48a323a07c767ba3bb14d0e0 Mon Sep 17 00:00:00 2001 From: Justin Marshall Date: Sat, 27 Jun 2020 14:24:23 -0700 Subject: [PATCH] Hash mark cursor now render correctly in isometric. --- code/redalert/cell.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/code/redalert/cell.cpp b/code/redalert/cell.cpp index 10acd8c..441ee73 100644 --- a/code/redalert/cell.cpp +++ b/code/redalert/cell.cpp @@ -1238,10 +1238,19 @@ void CellClass::Draw_It(int x, int y, bool objects) /* ** Draw the hash-mark cursor: */ - if (Map.ProximityCheck && Is_Clear_To_Build(loco)) { - LogicPage->Draw_Stamp(DisplayClass::TransIconsetHD, 0, x, y, NULL, WINDOW_TACTICAL); - } else { - LogicPage->Draw_Stamp(DisplayClass::TransIconsetHD, 2, x, y, NULL, WINDOW_TACTICAL); + { + int xx = x; + int yy = y; + ConvertCoordsToIsometric(xx, yy); + lastRenderX = xx; + lastRenderY = yy; + + if (Map.ProximityCheck && Is_Clear_To_Build(loco)) { + LogicPage->Draw_Stamp(DisplayClass::TransIconsetHD, 0, xx, yy, NULL, WINDOW_TACTICAL); + } + else { + LogicPage->Draw_Stamp(DisplayClass::TransIconsetHD, 2, xx, yy, NULL, WINDOW_TACTICAL); + } } #ifdef SCENARIO_EDITOR