mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 16:32:53 +02:00
Fixed small warning
This commit is contained in:
@@ -1394,10 +1394,8 @@ namespace Game {
|
|||||||
}
|
}
|
||||||
} else if (canPutInCell == true) {
|
} else if (canPutInCell == true) {
|
||||||
if (!forcePut) {
|
if (!forcePut) {
|
||||||
char szBuf[8096] = "";
|
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());
|
||||||
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());
|
|
||||||
//throw game_runtime_error(szBuf);
|
//throw game_runtime_error(szBuf);
|
||||||
printf(szBuf);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (ut->hasCellMap() == true &&
|
} else if (ut->hasCellMap() == true &&
|
||||||
|
Reference in New Issue
Block a user