Codechange: move all date-related variables inside the timer (#10706)
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "autoslope.h"
|
||||
#include "tunnelbridge_map.h"
|
||||
#include "strings_func.h"
|
||||
#include "date_func.h"
|
||||
#include "timer/timer_game_calendar.h"
|
||||
#include "clear_func.h"
|
||||
#include "vehicle_func.h"
|
||||
#include "sound_func.h"
|
||||
@@ -206,7 +206,7 @@ CommandCost CheckBridgeAvailability(BridgeType bridge_type, uint bridge_len, DoC
|
||||
if (bridge_type >= MAX_BRIDGES) return CMD_ERROR;
|
||||
|
||||
const BridgeSpec *b = GetBridgeSpec(bridge_type);
|
||||
if (b->avail_year > _cur_year) return CMD_ERROR;
|
||||
if (b->avail_year > TimerGameCalendar::year) return CMD_ERROR;
|
||||
|
||||
uint max = std::min(b->max_length, _settings_game.construction.max_bridge_length);
|
||||
|
||||
|
Reference in New Issue
Block a user