diff options
author | rubidium <rubidium@openttd.org> | 2010-12-13 21:53:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-13 21:53:23 +0000 |
commit | e3b391249d2607e5d2af60ada11d3bbaeba0b3a1 (patch) | |
tree | 1e722f461b991b352dff31fcc4f457b65f70d544 /src/train_cmd.cpp | |
parent | 49a77e89c425c37eb4c6bb4bf9e942bd75a48d57 (diff) | |
download | openttd-e3b391249d2607e5d2af60ada11d3bbaeba0b3a1.tar.xz |
(svn r21505) -Change: generalise the lost_train_warning setting to lost_vehicle_warning
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 0d42cb47d..02820faa7 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2417,7 +2417,7 @@ static Track ChooseTrainTrack(Train *v, TileIndex tile, DiagDirection enterdir, SetBit(v->vehicle_flags, VF_PATHFINDER_LOST); /* and notify user about the event */ AI::NewEvent(v->owner, new AIEventVehicleLost(v->index)); - if (_settings_client.gui.lost_train_warn && v->owner == _local_company) { + if (_settings_client.gui.lost_vehicle_warn && v->owner == _local_company) { SetDParam(0, v->index); AddVehicleNewsItem( STR_NEWS_TRAIN_IS_LOST, @@ -3609,7 +3609,7 @@ static bool TrainLocoHandler(Train *v, bool mode) if (HasBit(v->flags, VRF_TRAIN_STUCK) && v->wait_counter > 2 * _settings_game.pf.wait_for_pbs_path * DAY_TICKS) { /* Show message to player. */ - if (_settings_client.gui.lost_train_warn && v->owner == _local_company) { + if (_settings_client.gui.lost_vehicle_warn && v->owner == _local_company) { SetDParam(0, v->index); AddVehicleNewsItem( STR_NEWS_TRAIN_IS_STUCK, |