From 569325823df92f7304afe7a7509d9d14b7917326 Mon Sep 17 00:00:00 2001 From: Japa Date: Sat, 28 May 2016 21:23:26 +0530 Subject: [PATCH] Send world name and time with world center in remotefortressreader.cpp --- library/xml | 2 +- plugins/remotefortressreader.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/library/xml b/library/xml index 98cc1e018..d3182b7f9 160000 --- a/library/xml +++ b/library/xml @@ -1 +1 @@ -Subproject commit 98cc1e01886aaea161d651cf97229ad08e9782b0 +Subproject commit d3182b7f9a241d75e556937cad1f2c8824845b4f diff --git a/plugins/remotefortressreader.cpp b/plugins/remotefortressreader.cpp index c08736791..fb383af65 100644 --- a/plugins/remotefortressreader.cpp +++ b/plugins/remotefortressreader.cpp @@ -1772,6 +1772,10 @@ static command_result GetWorldMapCenter(color_ostream &stream, const EmptyMessag out->set_center_x(pos.x); out->set_center_y(pos.y); out->set_center_z(pos.z); + out->set_name(Translation::TranslateName(&(data->name), false)); + out->set_name_english(Translation::TranslateName(&(data->name), true)); + out->set_cur_year(World::ReadCurrentYear()); + out->set_cur_year_tick(World::ReadCurrentTick()); return CR_OK; }