|
|
/* $Id$ */
|
|
|
|
|
|
#ifndef VARIABLES_H
|
|
|
#define VARIABLES_H
|
|
|
|
|
|
// ********* START OF SAVE REGION
|
|
|
#if !defined(MAX_PATH)
|
|
|
# define MAX_PATH 260
|
|
|
#endif
|
|
|
|
|
|
// Prices and also the fractional part.
|
|
|
VARDEF Prices _price;
|
|
|
VARDEF uint16 _price_frac[NUM_PRICES];
|
|
|
|
|
|
VARDEF uint32 _cargo_payment_rates[NUM_CARGO];
|
|
|
VARDEF uint16 _cargo_payment_rates_frac[NUM_CARGO];
|
|
|
|
|
|
typedef struct {
|
|
|
GameDifficulty diff;
|
|
|
byte diff_level;
|
|
|
byte currency;
|
|
|
bool kilometers;
|
|
|
byte town_name;
|
|
|
byte landscape;
|
|
|
byte snow_line;
|
|
|
byte autosave;
|
|
|
byte road_side;
|
|
|
} GameOptions;
|
|
|
|
|
|
/* These are the options for the current game
|
|
|
* either ingame, or loaded. Also used for networking games */
|
|
|
VARDEF GameOptions _opt;
|
|
|
|
|
|
/* These are the default options for a new game */
|
|
|
VARDEF GameOptions _opt_newgame;
|
|
|
|
|
|
// Pointer to one of the two _opt OR _opt_newgame structs
|
|
|
VARDEF GameOptions *_opt_ptr;
|
|
|
|
|
|
enum {
|
|
|
CF_NOEURO = 0,
|
|
|
CF_ISEURO = 1,
|
|
|
};
|
|
|
|
|
|
typedef struct {
|
|
|
uint16 rate;
|
|
|
char separator;
|
|
|
uint16 to_euro;
|
|
|
char prefix[16];
|
|
|
char suffix[16];
|