Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
functions.
|
|
station is very spread out
|
|
|
|
-Codechange: Remove the superfluous attribute RoadStop::prev
|
|
rename it to 'IsValid'
-Codechange: While I'm at it, put 'RoadStop::AllocateRaw' into the protected section
|
|
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)
|
|
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
|
|
Remove the write-only attribute RoadStop::station
|
|
Use initialisers, reduce variable scope, remove spurious whitespace, fix format string to make it readable
|
|
gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
|
|
|
|
StationRect::methods.
|
|
|
|
new/delete operators (don't worry, they still use the same memory pool). Few station related functions turned into Station::methods (just first step). All this new stuff moved from station_cmd.cpp to the new file (station.cpp).
|