mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- wacky vc++ compile bugfix, code was changed in other header files and now std::max fails!
This commit is contained in:
@@ -1516,7 +1516,7 @@ void UnitUpdater::updateMorph(Unit *unit){
|
|||||||
break;
|
break;
|
||||||
case pfRoutePlanner:
|
case pfRoutePlanner:
|
||||||
if (needMapUpdate) {
|
if (needMapUpdate) {
|
||||||
int size = std::max(oldSize, unit->getType()->getSize());
|
int size = max(oldSize, unit->getType()->getSize());
|
||||||
world->getCartographer()->updateMapMetrics(unit->getPos(), size);
|
world->getCartographer()->updateMapMetrics(unit->getPos(), size);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user