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 feature_Hell_Temple
}; };
static const char * sa_feature[]= extern const char * sa_feature[];
{
(char*)"Other",
(char*)"Adamantine Tube",
(char*)"Underworld",
(char*)"Hell Temple"
};
/// used as a key for the local feature map. combines X an Y coords. /// used as a key for the local feature map. combines X an Y coords.
union planecoord union planecoord

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