mirror of
https://github.com/glest/glest-source.git
synced 2025-02-23 03:02:34 +01:00
Fixed printf issue
This commit is contained in:
parent
1b3ae14659
commit
3646557a9f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user