mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
Fixed printf issue
This commit is contained in:
@@ -590,7 +590,7 @@ namespace
|
||||
unit->getFullName(false).c_str(),
|
||||
unit->getDesc(false).c_str(),
|
||||
unit->getFaction()->getIndex());
|
||||
printf(szBuf);
|
||||
printf("%s", szBuf);
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).
|
||||
enabled)
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n",
|
||||
@@ -678,7 +678,7 @@ namespace
|
||||
unit->getFullName(false).c_str(),
|
||||
unit->getDesc(false).c_str(),
|
||||
unit->getFaction()->getIndex());
|
||||
printf(szBuf);
|
||||
printf("%s", szBuf);
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).
|
||||
enabled)
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n",
|
||||
@@ -765,7 +765,7 @@ namespace
|
||||
unit->getFullName(false).c_str(),
|
||||
unit->getDesc(false).c_str(),
|
||||
unit->getFaction()->getIndex());
|
||||
printf(szBuf);
|
||||
printf("%s", szBuf);
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).
|
||||
enabled)
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n",
|
||||
@@ -854,7 +854,7 @@ namespace
|
||||
unit->getFullName(false).c_str(),
|
||||
unit->getDesc(false).c_str(),
|
||||
unit->getFaction()->getIndex());
|
||||
printf(szBuf);
|
||||
printf("%s", szBuf);
|
||||
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).
|
||||
enabled)
|
||||
SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n",
|
||||
|
@@ -1161,7 +1161,7 @@ namespace Glest {
|
||||
builtUnit->create();
|
||||
|
||||
if (builtUnitType->hasSkillClass(scBeBuilt) == false) {
|
||||
printf((string("Unit [") + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].").c_str());
|
||||
printf("%s", (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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user