summaryrefslogtreecommitdiff
path: root/plugins/mapexport
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-20 13:30:37 +0400
committerAlexander Gavrilov2012-04-20 13:30:37 +0400
commit0a6982f4041f43d571bd2690f148ff369f2d8038 (patch)
tree13d60514e341a3bafa36ffa7b8391d1eb5956e38 /plugins/mapexport
parentd95cc3435fe249e1c86e5af36b8a10e9009edd97 (diff)
downloaddfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.gz
dfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.bz2
dfhack-0a6982f4041f43d571bd2690f148ff369f2d8038.tar.xz
Enable warnings correctly on linux and fix a lot of them.
Diffstat (limited to 'plugins/mapexport')
-rw-r--r--plugins/mapexport/mapexport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mapexport/mapexport.cpp b/plugins/mapexport/mapexport.cpp
index fa1736ed..625f4a74 100644
--- a/plugins/mapexport/mapexport.cpp
+++ b/plugins/mapexport/mapexport.cpp
@@ -2,7 +2,7 @@
#include "Console.h"
#include "Export.h"
#include "PluginManager.h"
-#include "modules/MapCache.h"f
+#include "modules/MapCache.h"
using namespace DFHack;
#include <fstream>
@@ -50,6 +50,7 @@ static dfproto::Tile::TileMaterialType toProto(df::tiletype_material mat)
switch (mat)
{
#define CONVERT(name) case tiletype_material::name: return dfproto::Tile::name;
+ case tiletype_material::NONE:
CONVERT(AIR)
case tiletype_material::PLANT:
CONVERT(SOIL)
@@ -74,9 +75,8 @@ static dfproto::Tile::TileMaterialType toProto(df::tiletype_material mat)
CONVERT(BROOK)
CONVERT(RIVER)
#undef CONVERT
- default:
- return dfproto::Tile::AIR;
}
+ return dfproto::Tile::AIR;
}
command_result mapexport (color_ostream &out, std::vector <std::string> & parameters)