Mercurial > hg > openttd
diff src/town_cmd.cpp @ 7058:74d401c66902 draft
(svn r10323) -Codechange: reference company name, number and player (president) name
by index
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 25 Jun 2007 13:30:38 +0000 |
parents | fa5196b1b53d |
children | 5c2889ace3ac |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -1934,15 +1934,10 @@ 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);