summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
AgeCommit message (Collapse)Author
2007-02-23(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp ↵belugas
files with the @file tag as well as a few general comments style
2007-02-23(svn r8852) -Fix (r8735): make the dynamite tool for drive through road ↵rubidium
stops as if it were removing a normal road tile (consider the local authority and such). -Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
2007-02-23(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads ↵rubidium
outside of the local authority.
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-21(svn r8833) -Fixtron
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
2007-02-21(svn r8828) -Fixtron
-Regression (r7585): On load calculate the station rectangle for all savegames, not just savegames with at least version 27
2007-02-20(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular ↵peter1138
struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-20(svn r8822) -Fixtron
Variable scope, const
2007-02-19(svn r8809) -Fix (r8715): accidentally removed a part of an expression.rubidium
2007-02-18(svn r8800) -Fixtron
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
2007-02-18(svn r8799) -Fixtron
Reduce variable scope
2007-02-18(svn r8797) -Fix (8741): the 'drive through station built on town owned ↵rubidium
road' bit was not set.
2007-02-18(svn r8796) -Fixtron
Remove the unused function AllocateStation() which was left over from r8125
2007-02-18(svn r8794) -Fixtron
Remove the possiblity to take over stations with OWNER_NONE by building a station next to it -Fix: It was possible to take over buoys by building a station next to them Also remove the now unnecessary special case which prevented taking over oilrigs NOTE: 0.5 candidate
2007-02-17(svn r8782) -Fixtron
Adapt GetClosestStationFromTile() more to the way it is used: - All but deleted stations get filtered later, so do not include non-deleted station in the first place - Remove the two parameters, which are the same for all callers
2007-02-17(svn r8781) -Fixtron
A spectator cannot build stations, so do not include a special case for him
2007-02-17(svn r8779) -Fixtron
-Codechange: Use a more generic test, which tests the allowed aircraft instead of hardcoding the airport type numbers, to generate station names
2007-02-17(svn r8767) -Fixtron
-Codechange: Do not hardcode the catchment radius of airports, but hold the information in AirportFTAClass -Fix (r979): The default AI tested possible airport locations with a fixed catchment radius instead of the radius of the to be built airport
2007-02-16(svn r8765) -Codechange: remove logic redundancy by moving it from the gui ↵rubidium
into the cmd code.
2007-02-16(svn r8755) -Fixtron
Abbreviate GetAirport(st->airport_type) to st->Airport()
2007-02-14(svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more ↵rubidium
robust and add roadstops.grf to the list of required grfs.
2007-02-14(svn r8735) -Feature: drive-through road stops made possible by the hard ↵rubidium
work of mart3p.
2007-02-13(svn r8715) -Codechange/cleanup: replace magic numbers related to state of ↵rubidium
road vehicles with enums. Original patch by mart3p.
2007-02-13(svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into ↵celestar
GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed.
2007-02-13(svn r8707) -Codechange: Turn IsValidStation into a method of Stationcelestar
2007-02-13(svn r8705) -Codechange: Increased the number of airport blocks to 64. This ↵celestar
involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums
2007-02-13(svn r8698) -Codechange: enumify the returns of VehicleEnterTilerubidium
2007-02-13(svn r8694) -Codechange: make RoadStop's status accessible via accessor ↵rubidium
functions.
2007-02-08(svn r8635) -Fix: draw canal edges under buoys that are in a canal.rubidium
2007-02-07(svn r8619) -Fix: store the ownership of a water tile in the buoy tile and ↵rubidium
set the ownership of the water tile when the buoy is removed. This solves the issue of removing ownership from canal tiles thus making is possible for other players to remove the canal tile.
2007-02-02(svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan)KUDr
2007-02-02(svn r8539) -Fixtron
static
2007-02-02(svn r8531) -Fixtron
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
2007-02-02(svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming ↵celestar
conflict no longer exists.
2007-02-01(svn r8514) -Codechange: Turn IsBuoy into a method of stationscelestar
2007-02-01(svn r8507) -Codechange/Feature: Don't remove player-owned property on-load ↵Darkvater
in the scenario editor. Add a button to the landscape window to do this.
2007-01-31(svn r8499) -Fixtron
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
2007-01-31(svn r8477) -Fixtron
-Codechange: Remove the unnecessary attributes Station::{bus,lorry}_tile_obsolete by replacing them with a scan of the map for existing road stops when loading old savegames
2007-01-31(svn r8476) -Fixtron
Remove the unused remnants of {bus,truck}_stop_status_obsolete (though I wonder a bit why this information doesn't get converted on load *shrug*)
2007-01-31(svn r8475) -Fixtron
Remove the unused remnants of blocked_months_obsolete
2007-01-31(svn r8474) -Fixtron
Turn GetPrimaryRoadStop() into a method of struct Station
2007-01-28(svn r8449) -Fixtron
-Codechange: Remove the superfluous attribute RoadStop::prev
2007-01-26(svn r8414) -Codechange: Use own AutoPtrT instead of std::auto_ptr.KUDr
-Simplifies assignment from raw pointers -Should be harder to crash the program by incorrect assignment into it. -Should help with MorphOS compilation errors
2007-01-25(svn r8403) -Fix (r8402): Forgot to remove an enumcelestar
2007-01-25(svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, ↵celestar
and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
2007-01-25(svn r8400) -Fixtron
Simplify r8399
2007-01-25(svn r8399) -Fix (r8185): a new road stop was always created in ↵glx
CmdBuildRoadStop(), but it was not deleted if DC_EXEC flag was not set or if the station creation failed
2007-01-18(svn r8231) -Fix (r8125): MP desync caused by calling Random() from station ↵KUDr
constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium)
2007-01-17(svn r8212) -Fixtron
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
2007-01-17(svn r8207) -Fixtron
Remove the write-only attribute RoadStop::station