diff options
| author | Jared Adams | 2012-04-21 11:26:40 -0600 |
|---|---|---|
| committer | Jared Adams | 2012-04-21 11:26:40 -0600 |
| commit | 567b3e2a52a3be8949c4536cff15e68b55f87fc6 (patch) | |
| tree | 742f25bf8953b60ef2d44e5eadee332339e1d002 /plugins/liquids.cpp | |
| parent | 52138d8998e38b6af550749ac7fd226a7bd86edd (diff) | |
| download | dfhack-567b3e2a52a3be8949c4536cff15e68b55f87fc6.tar.gz dfhack-567b3e2a52a3be8949c4536cff15e68b55f87fc6.tar.bz2 dfhack-567b3e2a52a3be8949c4536cff15e68b55f87fc6.tar.xz | |
Fix range on tiletypes and make it saner for both plugins.
Diffstat (limited to 'plugins/liquids.cpp')
| -rw-r--r-- | plugins/liquids.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index ff222126..1ecf98b1 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -200,22 +200,8 @@ command_result df_liquids (color_ostream &out_, vector <string> & parameters) } else if(command == "range" || command == "r") { - int oldWidth = width, oldHeight = height, oldZLevels = z_levels; - width = height = z_levels = 0; - - if (commands.size() >= 3) - { - width = atoi(commands[1].c_str()); - height = atoi(commands[2].c_str()); - - if (commands.size() >= 4) { - z_levels = atoi(commands[3].c_str()); - } - } - - command_result res = parseRectangle(out, width, height, z_levels, - oldWidth, oldHeight, oldZLevels); - + command_result res = parseRectangle(out, commands, 1, commands.size(), + width, height, z_levels); if (res != CR_OK) { return res; |
