Move definition of sa_feature to .cpp to avoid unsed variable warning.

Signed-off-by: Tom Prince <tom.prince@ualberta.net>
develop
Tom Prince 2011-03-01 17:29:27 -05:00
parent f477fc002c
commit a82e249205
2 changed files with 10 additions and 8 deletions

@ -23,13 +23,7 @@ namespace DFHack
feature_Hell_Temple
};
static const char * sa_feature[]=
{
(char*)"Other",
(char*)"Adamantine Tube",
(char*)"Underworld",
(char*)"Hell Temple"
};
extern const char * sa_feature[];
/// used as a key for the local feature map. combines X an Y coords.
union planecoord

@ -40,6 +40,14 @@ distribution.
#define MAPS_GUARD if(!d->Started) throw DFHack::Error::ModuleNotInitialized();
using namespace DFHack;
const char * sa_feature[]=
{
"Other",
"Adamantine Tube",
"Underworld",
"Hell Temple"
};
struct Maps::Private
{
uint32_t * block;