diff options
author | rubidium <rubidium@openttd.org> | 2013-02-03 20:18:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-03 20:18:41 +0000 |
commit | 191cfd077f610cadee129e5a52ea1a818d9a96b6 (patch) | |
tree | 287e164f3666941125d0cc821569c308f1ec612e | |
parent | fc5f25a823f286c97610a1b8347d6a863957c839 (diff) | |
download | openttd-191cfd077f610cadee129e5a52ea1a818d9a96b6.tar.xz |
(svn r24966) -Fix [FS#5228]: trams would get stuck on water
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 646cb0772..bc3da850f 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1088,7 +1088,7 @@ static bool CanBuildTramTrackOnTile(CompanyID c, TileIndex t, RoadBits r) /* The 'current' company is not necessarily the owner of the vehicle. */ Backup<CompanyByte> cur_company(_current_company, c, FILE_LINE); - CommandCost ret = DoCommand(t, ROADTYPE_TRAM << 4 | r, 0, DC_NONE, CMD_BUILD_ROAD); + CommandCost ret = DoCommand(t, ROADTYPE_TRAM << 4 | r, 0, DC_NO_WATER, CMD_BUILD_ROAD); cur_company.Restore(); return ret.Succeeded(); |