diff options
| author | Alexander Gavrilov | 2012-01-19 14:30:22 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-01-19 14:30:22 +0400 |
| commit | 7db467a740509cb60f0ca7a996dc45265694cfc7 (patch) | |
| tree | 03571750bc990b83868bd87f620c3ac5c5d11f57 /plugins/autodump.cpp | |
| parent | d75292acc77b7e23f6aa9d8771aa89592dac0b45 (diff) | |
| download | dfhack-7db467a740509cb60f0ca7a996dc45265694cfc7.tar.gz dfhack-7db467a740509cb60f0ca7a996dc45265694cfc7.tar.bz2 dfhack-7db467a740509cb60f0ca7a996dc45265694cfc7.tar.xz | |
Update code to accomodate the new coord/coord2d/coord_path structs.
Also replicate the methods of DFCoord.
Diffstat (limited to 'plugins/autodump.cpp')
| -rw-r--r-- | plugins/autodump.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/autodump.cpp b/plugins/autodump.cpp index d36854bb..a7cebf7b 100644 --- a/plugins/autodump.cpp +++ b/plugins/autodump.cpp @@ -143,7 +143,7 @@ static command_result autodump_main(Core * c, vector <string> & parameters) for(std::size_t i=0; i< numItems; i++) { df::item * itm = world->items.all[i]; - DFCoord pos_item(itm->x, itm->y, itm->z); + DFCoord pos_item(itm->pos.x, itm->pos.y, itm->pos.z); // keep track how many items are at places. all items. coordmap::iterator it = counts.find(pos_item); @@ -185,7 +185,7 @@ static command_result autodump_main(Core * c, vector <string> & parameters) { // yes... cerr << "Moving from block to block!" << endl; - df_block * bl_src = Maps->getBlock(itm->x /16, itm->y/16, itm->z); + df_block * bl_src = Maps->getBlock(itm->pos.x /16, itm->pos.y/16, itm->pos.z); df_block * bl_tgt = Maps->getBlock(cx /16, cy/16, cz); if(bl_src) { @@ -206,9 +206,9 @@ static command_result autodump_main(Core * c, vector <string> & parameters) } // Move the item - itm->x = pos_cursor.x; - itm->y = pos_cursor.y; - itm->z = pos_cursor.z; + itm->pos.x = pos_cursor.x; + itm->pos.y = pos_cursor.y; + itm->pos.z = pos_cursor.z; } else // destroy { |
