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/deramp.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/deramp.cpp')
| -rw-r--r-- | plugins/deramp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/deramp.cpp b/plugins/deramp.cpp index a86b61e8..2549fb83 100644 --- a/plugins/deramp.cpp +++ b/plugins/deramp.cpp @@ -51,7 +51,7 @@ DFhackCExport command_result df_deramp (Core * c, vector <string> & parameters) for (int i = 0; i < blocks_total; i++) { df::map_block *block = world->map.map_blocks[i]; - df::map_block *above = getBlock(block->map_x, block->map_y, block->map_z + 1); + df::map_block *above = getBlock(block->map_pos.x, block->map_pos.y, block->map_pos.z + 1); for (int x = 0; x < 16; x++) { |
