diff --git a/source/game/main/main.cpp b/source/game/main/main.cpp index 2ddc8a7a9..0a34beb9d 100644 --- a/source/game/main/main.cpp +++ b/source/game/main/main.cpp @@ -2000,7 +2000,7 @@ namespace Game { foundPath = false; string customPathValue = ""; - + if (fileExists(devPropertyFile) == true && devProperties.hasString("DataPath") == true) { foundPath = true; diff --git a/source/game/world/map.cpp b/source/game/world/map.cpp index 803532400..f97d10ec5 100644 --- a/source/game/world/map.cpp +++ b/source/game/world/map.cpp @@ -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 &&