attempt to fix weird command transition behavior

This commit is contained in:
Mark Vejvoda 2011-10-28 04:17:26 +00:00
parent 1293771964
commit 4223567f2b
1 changed files with 2 additions and 0 deletions

View File

@ -1135,6 +1135,8 @@ int Unit::getCountOfProducedUnits(const UnitType *ut) const{
CommandResult Unit::giveCommand(Command *command, bool tryQueue) {
if(SystemFlags::getSystemSettingType(SystemFlags::debugUnitCommands).enabled) SystemFlags::OutputDebug(SystemFlags::debugUnitCommands,"\n======================\nUnit Command tryQueue = %d\nUnit Info:\n%s\nCommand Info:\n%s\n",tryQueue,this->toString().c_str(),command->toString().c_str());
changedActiveCommand = false;
Chrono chrono;
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start();