diff --git a/code/redalert/cell.cpp b/code/redalert/cell.cpp index 92faa1d..b6560ae 100644 --- a/code/redalert/cell.cpp +++ b/code/redalert/cell.cpp @@ -1040,8 +1040,8 @@ void CellClass::ConvertIsoCoordsToScreen(int& x, int& y) { //x = floor(tempPt_x / (CELL_PIXEL_W)) * CELL_PIXEL_W; //y = floor(tempPt_y / (CELL_PIXEL_H)) * CELL_PIXEL_H; - x = tempPt_x - CELL_PIXEL_W; - y = tempPt_y - CELL_PIXEL_H; + x = tempPt_x; + y = tempPt_y; //Console_Printf("%d %d\n", x, y); } diff --git a/code/redalert/display.cpp b/code/redalert/display.cpp index 517d922..9809840 100644 --- a/code/redalert/display.cpp +++ b/code/redalert/display.cpp @@ -3169,18 +3169,10 @@ int DisplayClass::TacticalClass::Action(unsigned flags, KeyNumType & key) x = Get_Mouse_X(); y = Get_Mouse_Y(); -// jmarshall - int tileX, tileY; int screenX, screenY; - screenX = x; screenY = y; - if (!CellClass::ScreenCoordsToIsoTile(x, y, tileX, tileY)) { - return 0; - } - x = tileX * CELL_PIXEL_W; - y = tileY * CELL_PIXEL_H; -// jmarshall end + CellClass::ConvertIsoCoordsToScreen(x, y); bool edge = (y == 0 || x == 0 || x == SeenBuff.Get_Width()-1 || y == SeenBuff.Get_Height()-1); COORDINATE coord = Map.Pixel_To_Coord(x, y);