Fix the rest of the enum (left over from last patch).

A const TERRAIN is preferable to an enum here, since the type will
then be correct.
This commit is contained in:
Rusty Russell 2006-01-24 01:56:37 +00:00
parent e2feadfc86
commit bfd1745aa4

View file

@ -37,7 +37,11 @@ public:
//be corresponding entries for these types of terrain in the terrain
//configuration file.
static const TERRAIN VOID_TERRAIN = ' ';
enum { FOGGED = '~', KEEP = 'K', CASTLE = 'C', VILLAGE = 't', FOREST = 'f' };
static const TERRAIN FOGGED = '~';
static const TERRAIN KEEP = 'K';
static const TERRAIN CASTLE = 'C';
static const TERRAIN VILLAGE = 't';
static const TERRAIN FOREST = 'f';
//the name of the terrain is the terrain itself, the underlying terrain
//is the name of the terrain for game-logic purposes. I.e. if the terrain