Mercurial > hg > openttd
comparison src/station_cmd.cpp @ 8519:0e4b2a37af1f draft
(svn r12094) -Codechange: use DC_BANKRUPT command flag when removing player property to allow further fixes
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 09 Feb 2008 15:07:31 +0000 |
parents | 60d7ff4383fb |
children | c777304e2098 |
comparison
equal
deleted
inserted
replaced
8518:60d7ff4383fb | 8519:0e4b2a37af1f |
---|---|
2891 RebuildStationLists(); | 2891 RebuildStationLists(); |
2892 InvalidateWindowClasses(WC_STATION_LIST); | 2892 InvalidateWindowClasses(WC_STATION_LIST); |
2893 } else { | 2893 } else { |
2894 if (IsDriveThroughStopTile(tile) && GetStopBuiltOnTownRoad(tile)) { | 2894 if (IsDriveThroughStopTile(tile) && GetStopBuiltOnTownRoad(tile)) { |
2895 /* For a drive-through stop on a town-owned road remove the stop and replace the road */ | 2895 /* For a drive-through stop on a town-owned road remove the stop and replace the road */ |
2896 DoCommand(tile, 0, (GetStationType(tile) == STATION_TRUCK) ? RoadStop::TRUCK : RoadStop::BUS, DC_EXEC, CMD_REMOVE_ROAD_STOP); | 2896 DoCommand(tile, 0, (GetStationType(tile) == STATION_TRUCK) ? RoadStop::TRUCK : RoadStop::BUS, DC_EXEC | DC_BANKRUPT, CMD_REMOVE_ROAD_STOP); |
2897 } else { | 2897 } else { |
2898 DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); | 2898 DoCommand(tile, 0, 0, DC_EXEC | DC_BANKRUPT, CMD_LANDSCAPE_CLEAR); |
2899 } | 2899 } |
2900 } | 2900 } |
2901 } | 2901 } |
2902 | 2902 |
2903 /** | 2903 /** |