Fixed small warning

This commit is contained in:
mathusummut
2019-04-06 00:27:57 +02:00
parent f038cead1a
commit f85d7f322e
2 changed files with 2 additions and 4 deletions

View File

@@ -2000,7 +2000,7 @@ namespace Game {
foundPath = false;
string
customPathValue = "";
if (fileExists(devPropertyFile) == true
&& devProperties.hasString("DataPath") == true) {
foundPath = true;

View File

@@ -1394,10 +1394,8 @@ namespace Game {
}
} else if (canPutInCell == true) {
if (!forcePut) {
char szBuf[8096] = "";
snprintf(szBuf, 8096, "Trying to move unit [%d - %s] into occupied cell [%s] and field = %d, unit already in cell [%d - %s] ", unit->getId(), unit->getType()->getName(false).c_str(), pos.getString().c_str(), field, getCell(currPos)->getUnit(field)->getId(), getCell(currPos)->getUnit(field)->getType()->getName(false).c_str());
printf("Trying to move unit [%d - %s] into occupied cell [%s] and field = %d, unit already in cell [%d - %s] ", unit->getId(), unit->getType()->getName(false).c_str(), pos.getString().c_str(), field, getCell(currPos)->getUnit(field)->getId(), getCell(currPos)->getUnit(field)->getType()->getName(false).c_str());
//throw game_runtime_error(szBuf);
printf(szBuf);
}
}
} else if (ut->hasCellMap() == true &&