From 4f9479cce52fab6ef97594debcacc8beac2fc6e4 Mon Sep 17 00:00:00 2001 From: JapaMala Date: Wed, 25 Jun 2014 18:49:00 +0530 Subject: [PATCH] Fixed a bug where remotefortressreader was using min_x for min_z. --- plugins/remotefortressreader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/remotefortressreader.cpp b/plugins/remotefortressreader.cpp index be736eb80..fb7c55c45 100644 --- a/plugins/remotefortressreader.cpp +++ b/plugins/remotefortressreader.cpp @@ -216,7 +216,8 @@ void CopyBlock(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetBloc static command_result GetBlockList(color_ostream &stream, const BlockRequest *in, BlockList *out) { - for (int zz = in->min_x(); zz < in->max_z(); zz++) + //stream.print("Got request for blocks from (%d, %d, %d) to (%d, %d, %d).\n", in->min_x(), in->min_y(), in->min_z(), in->max_x(), in->max_y(), in->max_z()); + for (int zz = in->min_z(); zz < in->max_z(); zz++) { for (int yy = in->min_y(); yy < in->max_y(); yy++) {