Rubber band selection now works.

This commit is contained in:
Justin Marshall
2020-07-19 14:07:37 -07:00
parent 24704c9ad8
commit f09caa46da
5 changed files with 33 additions and 25 deletions
+9
View File
@@ -141,6 +141,8 @@ ObjectClass::ObjectClass(RTTIType rtti, int id) :
Strength(255),
IsSelectedMask(0) // Mask showing who has selected this object
{
renderX = -1;
renderY = -1;
}
@@ -1287,6 +1289,13 @@ bool ObjectClass::Select(bool allow_mixed)
return(true);
}
//
// ObjectClass::SetRenderXY
//
void ObjectClass::SetRenderXY(int x, int y) {
renderX = x;
renderY = y;
}
/***********************************************************************************************
* ObjectClass::Render -- Displays the object onto the map. *