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