diff --git a/zone/remote_call.cpp b/zone/remote_call.cpp index 95575d384..82f11e7fc 100644 --- a/zone/remote_call.cpp +++ b/zone/remote_call.cpp @@ -190,6 +190,19 @@ void handle_rc_get_initial_entity_positions(const std::string &method, const std res["h"] = itoa(c->GetHeading()); RemoteCallResponse(connection_id, request_id, res, error); } + std::list object_list; + entity_list.GetObjectList(object_list); + for (std::list::iterator itr = object_list.begin(); itr != object_list.end(); ++itr) { + Object* c = *itr; + res["ent_id"] = itoa(c->GetID()); + res["type"] = "Object"; + res["name"] = c->GetModelName(); + res["x"] = itoa(c->GetX()); + res["y"] = itoa(c->GetY()); + res["z"] = itoa(c->GetZ()); + res["h"] = itoa(c->GetHeadingData()); + RemoteCallResponse(connection_id, request_id, res, error); + } } void handle_rc_move_entity(const std::string &method, const std::string &connection_id, const std::string &request_id, const std::vector ¶ms) {