diff options
author | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-06-25 13:30:38 +0000 |
commit | eb6594caa840da0b4d8a16154cc2c0353d3eb238 (patch) | |
tree | 2aea1c963774b012ba0a63a2d9573f247003e6a9 /src/town_cmd.cpp | |
parent | 0e59b4dc57b52f6c13df258f9d9c6263f53d68dd (diff) | |
download | openttd-eb6594caa840da0b4d8a16154cc2c0353d3eb238.tar.xz |
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index b0104910b..f19c2266b 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1934,15 +1934,10 @@ static void TownActionAdvertiseLarge(Town* t) static void TownActionRoadRebuild(Town* t) { - const Player* p; - t->road_build_months = 6; SetDParam(0, t->index); - - p = GetPlayer(_current_player); - SetDParam(1, p->name_1); - SetDParam(2, p->name_2); + SetDParam(1, _current_player); AddNewsItem(STR_2055_TRAFFIC_CHAOS_IN_ROAD_REBUILDING, NEWS_FLAGS(NM_NORMAL, NF_TILE, NT_GENERAL, 0), t->xy, 0); |