mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
- attempt to fix Issue #150
This commit is contained in:
parent
25ba2b9eb1
commit
b1d6c73774
@ -2074,7 +2074,7 @@ void UnitUpdater::updateRepair(Unit *unit, int frameIndex) {
|
||||
repaired = peerUnitBuilder->getCurrCommand()->getUnit();
|
||||
nextToRepaired = repaired != NULL && map->isNextTo(unit, repaired);
|
||||
}
|
||||
else {
|
||||
else if(peerUnitBuilder->getCurrCommand()->getUnitType() != NULL) {
|
||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugUnitCommands).enabled) SystemFlags::OutputDebug(SystemFlags::debugUnitCommands,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||
Vec2i buildPos = map->findBestBuildApproach(unit, command->getPos(), peerUnitBuilder->getCurrCommand()->getUnitType());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user