From d17820a596663cf347e04e33d2263069a02de6a2 Mon Sep 17 00:00:00 2001 From: japamala Date: Thu, 22 Aug 2019 19:26:19 -0600 Subject: [PATCH 1/2] Made RemoteFortressReader pulll from the active units list, not from the full units list. --- plugins/remotefortressreader/remotefortressreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index cd9ebd87e..4cb479129 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -1670,9 +1670,9 @@ void GetWounds(df::unit_wound * wound, UnitWound * send_wound) static command_result GetUnitListInside(color_ostream &stream, const BlockRequest *in, UnitList *out) { auto world = df::global::world; - for (size_t i = 0; i < world->units.all.size(); i++) + for (size_t i = 0; i < world->units.active.size(); i++) { - df::unit * unit = world->units.all[i]; + df::unit * unit = world->units.active[i]; auto send_unit = out->add_creature_list(); send_unit->set_id(unit->id); send_unit->set_pos_x(unit->pos.x); From f00a7f9b3995080c1d5473b61e0451ed061e871f Mon Sep 17 00:00:00 2001 From: JapaMala Date: Sun, 8 Sep 2019 15:33:39 -0500 Subject: [PATCH 2/2] Bump RFR Version number. --- plugins/remotefortressreader/remotefortressreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index 4cb479129..e3cfc2e1f 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -1,5 +1,5 @@ #include "df_version_int.h" -#define RFR_VERSION "0.20.2" +#define RFR_VERSION "0.20.3" #include #include