mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Object selection now works in the map editor.
This commit is contained in:
@@ -1839,6 +1839,10 @@ bool DisplayClass::Push_Onto_TacMap(COORDINATE & source, COORDINATE & dest)
|
||||
*=============================================================================================*/
|
||||
ObjectClass * DisplayClass::Cell_Object(CELL cell, int x, int y) const
|
||||
{
|
||||
int tileX, tileY;
|
||||
CellClass::ScreenCoordsToIsoTile(x, y, tileX, tileY);
|
||||
x = tileX * CELL_PIXEL_W;
|
||||
y = tileY * CELL_PIXEL_H;
|
||||
return(*this)[cell].Cell_Object(x, y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user