(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels.

This commit is contained in:
peter1138
2007-02-20 22:09:21 +00:00
parent 6621beb126
commit ef2daa5060
24 changed files with 315 additions and 371 deletions

View File

@@ -337,19 +337,6 @@ VARDEF char *_config_file;
VARDEF char *_highscore_file;
VARDEF char *_log_file;
// NOSAVE: These can be recalculated from InitializeLandscapeVariables
typedef struct {
StringID names_s[NUM_CARGO];
StringID names_long[NUM_CARGO];
StringID names_short[NUM_CARGO];
byte weights[NUM_CARGO];
SpriteID sprites[NUM_CARGO];
byte transit_days_1[NUM_CARGO];
byte transit_days_2[NUM_CARGO];
} CargoConst;
VARDEF CargoConst _cargoc;
static inline void SetDParamX(uint32 *s, uint n, uint32 v)
{