mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-12 08:00:55 +02:00
Aircraft rubberband now goes down the same screen coordinate selection system.
This commit is contained in:
@@ -2981,9 +2981,13 @@ void DisplayClass::Select_These(COORDINATE coord1, COORDINATE coord2, bool addit
|
||||
*/
|
||||
for (int air_index = 0; air_index < Aircraft.Count(); air_index++) {
|
||||
AircraftClass * aircraft = Aircraft.Ptr(air_index);
|
||||
COORDINATE ocoord = aircraft->Center_Coord();
|
||||
int x = Coord_X(ocoord);
|
||||
int y = Coord_Y(ocoord);
|
||||
//COORDINATE ocoord = aircraft->Center_Coord();
|
||||
int x = aircraft->GetRenderX();
|
||||
int y = aircraft->GetRenderY();
|
||||
// Not on screen.
|
||||
if (x == -1 && y == -1) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/*
|
||||
** Only try to select objects that are allowed to be selected, and are within the bounding box.
|
||||
|
||||
Reference in New Issue
Block a user