mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
Fixed small warning
This commit is contained in:
@@ -2000,7 +2000,7 @@ namespace Game {
|
||||
foundPath = false;
|
||||
string
|
||||
customPathValue = "";
|
||||
|
||||
|
||||
if (fileExists(devPropertyFile) == true
|
||||
&& devProperties.hasString("DataPath") == true) {
|
||||
foundPath = true;
|
||||
|
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user