mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 04:22:32 +02:00
[Test] Incorrect build command is now a warning instead of an error
This commit is contained in:
@@ -1161,7 +1161,9 @@ namespace Glest {
|
|||||||
builtUnit->create();
|
builtUnit->create();
|
||||||
|
|
||||||
if (builtUnitType->hasSkillClass(scBeBuilt) == false) {
|
if (builtUnitType->hasSkillClass(scBeBuilt) == false) {
|
||||||
throw megaglest_runtime_error("Unit [" + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].");
|
printf((string("Unit [") + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].").c_str());
|
||||||
|
//throw megaglest_runtime_error("Unit [" + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
builtUnit->setCurrSkill(scBeBuilt);
|
builtUnit->setCurrSkill(scBeBuilt);
|
||||||
|
Reference in New Issue
Block a user