- commented out assert is it should be handled by the map logic

This commit is contained in:
Mark Vejvoda 2010-12-23 20:22:40 +00:00
parent 809d56e86c
commit 554a03279e
1 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ void World::update(){
//water effects
waterEffects.update(1.0f);
// attack effects
// attack effects
attackEffects.update(0.25f);
//bool needToUpdateUnits = true;
@ -554,7 +554,7 @@ void World::moveUnitCells(Unit *unit) {
Vec2i newPos= unit->getTargetPos();
//newPos must be free or the same pos as current
assert(map.getCell(unit->getPos())->getUnit(unit->getCurrField())==unit || map.isFreeCell(newPos, unit->getCurrField()));
//assert(map.getCell(unit->getPos())->getUnit(unit->getCurrField())==unit || map.isFreeCell(newPos, unit->getCurrField()));
// Only change cell placement in map if the new position is different
// from the old one