mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Merged changes from upstream and fixed compilation caused by API changes
This commit is contained in:
@ -98,6 +98,12 @@ void CTerrainSelection::deselectRange(const MapRect & rect)
|
||||
});
|
||||
}
|
||||
|
||||
void CTerrainSelection::setSelection(std::vector<int3> & vec)
|
||||
{
|
||||
for (auto pos : vec)
|
||||
this->select(pos);
|
||||
}
|
||||
|
||||
void CTerrainSelection::selectAll()
|
||||
{
|
||||
selectRange(MapRect(int3(0, 0, 0), getMap()->width, getMap()->height));
|
||||
|
Reference in New Issue
Block a user