From 86a02952f8ce9551160ff6659b42032ef9c59c6f Mon Sep 17 00:00:00 2001 From: Japa Date: Mon, 1 Apr 2013 04:39:30 +0530 Subject: [PATCH] Changed coords to embark tiles instead of blocks. --- plugins/isoworld | 2 +- plugins/isoworldremote.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/isoworld b/plugins/isoworld index 9903472d0..6a74e3ee9 160000 --- a/plugins/isoworld +++ b/plugins/isoworld @@ -1 +1 @@ -Subproject commit 9903472d031bb90a6b55c7950b4a1298293a6659 +Subproject commit 6a74e3ee9ee9d3e35da746fd3fd1d99c30b2e5ad diff --git a/plugins/isoworldremote.cpp b/plugins/isoworldremote.cpp index 6493acd92..a57c6c633 100644 --- a/plugins/isoworldremote.cpp +++ b/plugins/isoworldremote.cpp @@ -170,7 +170,7 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out ) static command_result GetEmbarkTile(color_ostream &stream, const TileRequest *in, EmbarkTile *out) { MapExtras::MapCache MC; - gather_embark_tile(in->want_x(), in->want_y(), out, &MC); + gather_embark_tile(in->want_x() * 3, in->want_y() * 3, out, &MC); MC.trash(); return CR_OK; } @@ -202,8 +202,8 @@ static command_result GetEmbarkInfo(color_ostream &stream, const MapRequest *in, out->set_current_season(*df::global::cur_season); out->set_region_x(df::global::world->map.region_x); out->set_region_y(df::global::world->map.region_y); - out->set_region_size_x(df::global::world->map.x_count_block); - out->set_region_size_y(df::global::world->map.y_count_block); + out->set_region_size_x(df::global::world->map.x_count_block / 3); + out->set_region_size_y(df::global::world->map.y_count_block / 3); return CR_OK; }