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

This commit is contained in:
rubidium
2010-05-13 10:14:29 +00:00
parent fc13802c72
commit a70fd540fc
30 changed files with 82 additions and 125 deletions

View File

@@ -180,9 +180,7 @@ public:
typedef void (*SpecialSpriteHandler)(ByteReader *buf);
enum {
MAX_STATIONS = 256,
};
static const uint MAX_STATIONS = 256;
/* Temporary data used when loading only */
struct GRFTempEngineData {
@@ -6609,7 +6607,7 @@ static void FinaliseAirportsArray()
AirportTileSpec **&airporttilespec = (*file)->airtspec;
if (airporttilespec != NULL) {
for (int i = 0; i < NUM_AIRPORTTILES; i++) {
for (uint i = 0; i < NUM_AIRPORTTILES; i++) {
if (airporttilespec[i] != NULL && airporttilespec[i]->enabled) {
_airporttile_mngr.SetEntitySpec(airporttilespec[i]);
}