mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r2828) Only command.c needs to know about _docommand_recursive, so make it static. Tell me if there's a problem, because i removed it from network_server.c, but afaict it should be ok
This commit is contained in:
parent
dc20e0ae81
commit
2b4e85db0b
|
@ -325,6 +325,8 @@ int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint p
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int _docommand_recursive;
|
||||||
|
|
||||||
int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
|
int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
|
||||||
{
|
{
|
||||||
int32 res;
|
int32 res;
|
||||||
|
|
|
@ -1353,8 +1353,6 @@ extern void SwitchMode(int new_mode);
|
||||||
static void NetworkCheckRestartMap(void)
|
static void NetworkCheckRestartMap(void)
|
||||||
{
|
{
|
||||||
if (_network_restart_game_date != 0 && _cur_year + MAX_YEAR_BEGIN_REAL >= _network_restart_game_date) {
|
if (_network_restart_game_date != 0 && _cur_year + MAX_YEAR_BEGIN_REAL >= _network_restart_game_date) {
|
||||||
_docommand_recursive = 0;
|
|
||||||
|
|
||||||
DEBUG(net, 0)("Auto-restarting map. Year %d reached.", _cur_year + MAX_YEAR_BEGIN_REAL);
|
DEBUG(net, 0)("Auto-restarting map. Year %d reached.", _cur_year + MAX_YEAR_BEGIN_REAL);
|
||||||
|
|
||||||
_random_seeds[0][0] = Random();
|
_random_seeds[0][0] = Random();
|
||||||
|
|
|
@ -271,8 +271,6 @@ VARDEF int32 _additional_cash_required;
|
||||||
|
|
||||||
VARDEF uint32 _decode_parameters[20];
|
VARDEF uint32 _decode_parameters[20];
|
||||||
|
|
||||||
VARDEF int _docommand_recursive;
|
|
||||||
|
|
||||||
VARDEF uint32 _pressed_key; // Low 8 bits = ASCII, High 16 bits = keycode
|
VARDEF uint32 _pressed_key; // Low 8 bits = ASCII, High 16 bits = keycode
|
||||||
VARDEF bool _ctrl_pressed; // Is Ctrl pressed?
|
VARDEF bool _ctrl_pressed; // Is Ctrl pressed?
|
||||||
VARDEF bool _shift_pressed; // Is Alt pressed?
|
VARDEF bool _shift_pressed; // Is Alt pressed?
|
||||||
|
|
Loading…
Reference in New Issue