(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:
@@ -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()
|
||||
{
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user