Made RemoteFortressReader pulll from the active units list, not from the full units list.

develop
japamala 2019-08-22 19:26:19 -06:00
parent 2344e60101
commit d17820a596
1 changed files with 2 additions and 2 deletions

@ -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) static command_result GetUnitListInside(color_ostream &stream, const BlockRequest *in, UnitList *out)
{ {
auto world = df::global::world; 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(); auto send_unit = out->add_creature_list();
send_unit->set_id(unit->id); send_unit->set_id(unit->id);
send_unit->set_pos_x(unit->pos.x); send_unit->set_pos_x(unit->pos.x);