diff options
author | frosch <frosch@openttd.org> | 2012-05-26 14:16:03 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-05-26 14:16:03 +0000 |
commit | a8c88f43b678b6d44e1fb4f78a51cdb7fb08a8aa (patch) | |
tree | 38b53a0432d536abc9dcfbbdd0b5c7c74bd55f99 /src/train_cmd.cpp | |
parent | a0be398da9f80ac316b2d8959ddf96345414dde2 (diff) | |
download | openttd-a8c88f43b678b6d44e1fb4f78a51cdb7fb08a8aa.tar.xz |
(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and NewsFlag instead.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 674da416d..2a639666d 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2785,7 +2785,7 @@ static void TrainEnterStation(Train *v, StationID station) SetDParam(0, st->index); AddVehicleNewsItem( STR_NEWS_FIRST_TRAIN_ARRIVAL, - v->owner == _local_company ? NS_ARRIVAL_COMPANY : NS_ARRIVAL_OTHER, + v->owner == _local_company ? NT_ARRIVAL_COMPANY : NT_ARRIVAL_OTHER, v->index, st->index ); @@ -3019,10 +3019,7 @@ static bool CheckTrainCollision(Train *v) if (tcc.num == 0) return false; SetDParam(0, tcc.num); - AddVehicleNewsItem(STR_NEWS_TRAIN_CRASH, - NS_ACCIDENT, - v->index - ); + AddVehicleNewsItem(STR_NEWS_TRAIN_CRASH, NT_ACCIDENT, v->index); ModifyStationRatingAround(v->tile, v->owner, -160, 30); SndPlayVehicleFx(SND_13_BIG_CRASH, v); |