(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

@@ -38,9 +38,7 @@ static void Load_MAPS()
AllocateMap(_map_dim_x, _map_dim_y);
}
enum {
MAP_SL_BUF_SIZE = 4096
};
static const uint MAP_SL_BUF_SIZE = 4096;
static void Load_MAPT()
{

View File

@@ -22,10 +22,8 @@
#include "saveload_internal.h"
#include "oldloader.h"
enum {
TTO_HEADER_SIZE = 41,
TTD_HEADER_SIZE = 49,
};
static const int TTO_HEADER_SIZE = 41;
static const int TTD_HEADER_SIZE = 49;
uint32 _bump_assert_value;

View File

@@ -15,10 +15,8 @@
#include "saveload.h"
#include "../tile_type.h"
enum {
BUFFER_SIZE = 4096,
OLD_MAP_SIZE = 256 * 256,
};
static const uint BUFFER_SIZE = 4096;
static const uint OLD_MAP_SIZE = 256 * 256;
struct LoadgameState {
FILE *file;

View File

@@ -81,11 +81,7 @@ enum SLRefType {
#define SL_MAX_VERSION 255
enum {
INC_VEHICLE_COMMON = 0,
};
enum {
enum ChunkType {
CH_RIFF = 0,
CH_ARRAY = 1,
CH_SPARSE_ARRAY = 2,