mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 23:21:19 +02:00
- commented out another possibly bad assert /exception
This commit is contained in:
@@ -820,10 +820,12 @@ void Map::putUnitCells(Unit *unit, const Vec2i &pos) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( ut->hasCellMap() == false || ut->getCellMapCell(i, j, unit->getModelFacing())) {
|
if( ut->hasCellMap() == false || ut->getCellMapCell(i, j, unit->getModelFacing())) {
|
||||||
assert(getCell(currPos)->getUnit(unit->getCurrField()) == NULL);
|
// NOT SURE UNDER WHAT CONDITIONS THIS COULD HAPPEN?
|
||||||
if(getCell(currPos)->getUnit(unit->getCurrField()) != NULL) {
|
|
||||||
throw runtime_error("getCell(currPos)->getUnit(unit->getCurrField()) != NULL");
|
//assert(getCell(currPos)->getUnit(unit->getCurrField()) == NULL);
|
||||||
}
|
//if(getCell(currPos)->getUnit(unit->getCurrField()) != NULL) {
|
||||||
|
// throw runtime_error("getCell(currPos)->getUnit(unit->getCurrField()) != NULL");
|
||||||
|
//}
|
||||||
|
|
||||||
getCell(currPos)->setUnit(unit->getCurrField(), unit);
|
getCell(currPos)->setUnit(unit->getCurrField(), unit);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user