Fixed unit_grounded in teleporting dwarf tile.

develop
expwnent 2012-09-28 19:17:12 -04:00
parent 1bde32fa5b
commit d41c4849f9
1 changed files with 1 additions and 0 deletions

@ -65,6 +65,7 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
df::coord2d pos(unit->pos.x % 16, unit->pos.y % 16);
df::tile_occupancy occ = block->OccupancyAt(pos);
occ.bits.unit = 0;
occ.bits.unit_grounded = 0;
block->setOccupancyAt(pos, occ);
//move immediately to destination