- bugfix for lua setUnitPosition method

This commit is contained in:
Mark Vejvoda 2012-10-12 21:50:00 +00:00
parent 86c083837b
commit 87c3a11876
1 changed files with 3 additions and 1 deletions

View File

@ -1302,7 +1302,9 @@ void World::setUnitPosition(int unitId, Vec2i pos) {
if(unit == NULL) {
throw megaglest_runtime_error("Can not find unit to set position unitId = " + intToStr(unitId));
}
unit->setPos(pos,true);
unit->setTargetPos(pos);
//unit->setPos(pos,true);
this->moveUnitCells(unit);
}
void World::addCellMarker(Vec2i pos, int factionIndex, const string &note, const string textureFile) {