attempt to fix weird command transition behavior
This commit is contained in:
parent
1293771964
commit
4223567f2b
|
@ -1135,6 +1135,8 @@ int Unit::getCountOfProducedUnits(const UnitType *ut) const{
|
||||||
CommandResult Unit::giveCommand(Command *command, bool tryQueue) {
|
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());
|
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;
|
Chrono chrono;
|
||||||
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start();
|
if(SystemFlags::getSystemSettingType(SystemFlags::debugPerformance).enabled) chrono.start();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue