(svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int

This commit is contained in:
rubidium
2010-05-13 09:44:44 +00:00
parent f1e3a88257
commit f09a74a996
52 changed files with 170 additions and 251 deletions

View File

@@ -23,7 +23,7 @@
#include "../../track_type.h"
//#define AYSTAR_DEBUG
enum {
enum AystarStatus {
AYSTAR_FOUND_END_NODE,
AYSTAR_EMPTY_OPENLIST,
AYSTAR_STILL_BUSY,
@@ -32,9 +32,7 @@ enum {
AYSTAR_DONE
};
enum {
AYSTAR_INVALID_NODE = -1,
};
static const int AYSTAR_INVALID_NODE = -1;
struct AyStarNode {
TileIndex tile;