From 58ed20b25b6019aa95d8e44028bff091050723e2 Mon Sep 17 00:00:00 2001 From: Japa Date: Thu, 6 Oct 2016 22:16:40 +0530 Subject: [PATCH] Send world map snow coverage over remotefortressreader. --- plugins/proto/RemoteFortressReader.proto | 1 + plugins/remotefortressreader.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/proto/RemoteFortressReader.proto b/plugins/proto/RemoteFortressReader.proto index 36c2442ce..f0fc57a6b 100644 --- a/plugins/proto/RemoteFortressReader.proto +++ b/plugins/proto/RemoteFortressReader.proto @@ -524,6 +524,7 @@ message RegionTile repeated SiteRealizationBuilding buildings = 14; repeated MatPair stone_materials = 15; repeated MatPair tree_materials = 16; + optional int32 snow = 17; } message RegionMap diff --git a/plugins/remotefortressreader.cpp b/plugins/remotefortressreader.cpp index 6bc7c8173..c3d2e42e5 100644 --- a/plugins/remotefortressreader.cpp +++ b/plugins/remotefortressreader.cpp @@ -2105,6 +2105,7 @@ static void SetRegionTile(RegionTile * out, df::region_map_entry * e1) plantMat->set_mat_type(419); } } + out->set_snow(e1->snowfall); } static command_result GetWorldMapNew(color_ostream &stream, const EmptyMessage *in, WorldMap *out)