(svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114).

This commit is contained in:
rubidium
2008-01-09 16:55:48 +00:00
parent 98b4fa7c07
commit 0365c1f33b
27 changed files with 190 additions and 294 deletions

View File

@@ -89,7 +89,6 @@ VARDEF bool _rightclick_emulate;
VARDEF PlayerFace _player_face; ///< for player face storage in openttd.cfg
/* IN/OUT parameters to commands */
VARDEF byte _yearly_expenses_type;
VARDEF TileIndex _build_tunnel_endtile;
VARDEF bool _generating_world;
@@ -110,8 +109,6 @@ VARDEF char *_highscore_file;
VARDEF char *_log_file;
#define SET_EXPENSES_TYPE(x) _yearly_expenses_type = x;
/* landscape.cpp */
extern const byte _tileh_to_sprite[32];