src/variables.h
changeset 6417 26acff62d001
parent 6338 0fb4f452873c
child 6298 c30fe89622df
child 9895 7bd07f43b0e3
equal deleted inserted replaced
6416:be4399248c60 6417:26acff62d001
   335 
   335 
   336 VARDEF char *_config_file;
   336 VARDEF char *_config_file;
   337 VARDEF char *_highscore_file;
   337 VARDEF char *_highscore_file;
   338 VARDEF char *_log_file;
   338 VARDEF char *_log_file;
   339 
   339 
   340 // NOSAVE: These can be recalculated from InitializeLandscapeVariables
       
   341 typedef struct {
       
   342 	StringID names_s[NUM_CARGO];
       
   343 	StringID names_long[NUM_CARGO];
       
   344 	StringID names_short[NUM_CARGO];
       
   345 	byte weights[NUM_CARGO];
       
   346 	SpriteID sprites[NUM_CARGO];
       
   347 	byte transit_days_1[NUM_CARGO];
       
   348 	byte transit_days_2[NUM_CARGO];
       
   349 } CargoConst;
       
   350 
       
   351 VARDEF CargoConst _cargoc;
       
   352 
       
   353 
   340 
   354 static inline void SetDParamX(uint32 *s, uint n, uint32 v)
   341 static inline void SetDParamX(uint32 *s, uint n, uint32 v)
   355 {
   342 {
   356 	s[n] = v;
   343 	s[n] = v;
   357 }
   344 }