mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 19:29:47 +02:00
- bugfix for lua setUnitPosition method
This commit is contained in:
@@ -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 ¬e, const string textureFile) {
|
||||
|
Reference in New Issue
Block a user