From 867e78b6fde70fe59c771ba21ef8f4672080a722 Mon Sep 17 00:00:00 2001 From: Japa Date: Sat, 4 Jul 2015 09:22:41 +0530 Subject: [PATCH] Correctly identify ice material. --- plugins/remotefortressreader.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/remotefortressreader.cpp b/plugins/remotefortressreader.cpp index bff5d015b..6629e7893 100644 --- a/plugins/remotefortressreader.cpp +++ b/plugins/remotefortressreader.cpp @@ -655,6 +655,15 @@ void CopyBlock(df::map_block * DfBlock, RemoteFortressReader::MapBlock * NetBloc df::coord2d p = df::coord2d(xx, yy); t_matpair baseMat = block->baseMaterialAt(p); t_matpair staticMat = block->staticMaterialAt(p); + switch (tileMaterial(tile)) + { + case tiletype_material::FROZEN_LIQUID: + staticMat.mat_type = builtin_mats::WATER; + staticMat.mat_index = -1; + break; + default: + break; + } RemoteFortressReader::MatPair * material = NetBlock->add_materials(); material->set_mat_type(staticMat.mat_type); material->set_mat_index(staticMat.mat_index);