Mercurial > hg > openttd
diff src/openttd.cpp @ 8598:ef2c93a9589d draft
(svn r12179) -Codechange: use GetCrossingRailTrack() and GetCrossingRailAxis() to improve code readability
author | smatz <smatz@openttd.org> |
---|---|
date | Mon, 18 Feb 2008 18:35:36 +0000 |
parents | 992fa65afba1 |
children | 35e7bec4c738 |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2393,7 +2393,7 @@ if (!GetPlayer(o)->is_active) { /* remove leftover rail piece from crossing (from very old savegames) */ _current_player = o; - DoCommand(t, 0, AxisToTrack(OtherAxis(GetCrossingRoadAxis(t))), DC_EXEC | DC_BANKRUPT, CMD_REMOVE_SINGLE_RAIL); + DoCommand(t, 0, GetCrossingRailTrack(t), DC_EXEC | DC_BANKRUPT, CMD_REMOVE_SINGLE_RAIL); } } }