Age | Commit message (Collapse) | Author |
|
templates. This gives up to 10% performance increase in games with lots of vehicles.
|
|
cargo too.
|
|
(properly) use a road stop still tried to go to that road stop.
|
|
cleanups might cause memory leaks due to the way C++ works.
|
|
|
|
so we do not have to duplicate code for each of the pool item classes and use it for the station and roadstop classes.
|
|
for stations (in such a manner that they can be used for other pools too).
|
|
hardcoding station types by graphics IDs.
|
|
instead of only the cargos that have been transported.
|
|
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
|
|
|
|
or removed if the station has no custom graphics.
|
|
|
|
processing power anymore when having a lot of trains.
|
|
The end of the preliminary work is near
|
|
stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)
|
|
you wouldn't ever be able to do so for a given station
|
|
|
|
|
|
This major feature-fix keeps track of the value of transfers offloaded at a station, and hands on to a loading vehicle a credit note proportionate to the cargo loaded. The transferring vehicle is paid only for the distance it has travelled. eg. B-C in a transfer chain A-B-C-D.
When the final cargo is delivered, these credit notes are cashed, and the final vehicle is paid for A-D minus any credit notes it is carrying. The company bank balance increases by the value of the A-D route.
You still need to set up a profitable route; it is still easy to make a loss on transfers by bad planning. :)
|
|
|
|
-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
|
|
Abbreviate GetAirport(st->airport_type) to st->Airport()
|
|
work of mart3p.
|
|
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.
|
|
|
|
involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums
|
|
functions.
|
|
|
|
station is very spread out
|
|
|
|
-Fix (since the dawn of time): Remove phantom oil rigs sometimes present in old savegames
|
|
-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
|
|
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*)
|
|
Remove the unused remnants of blocked_months_obsolete
|
|
Turn GetPrimaryRoadStop() into a method of struct Station
|
|
-Codechange: Remove the superfluous attribute RoadStop::prev
|
|
|
|
and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
|
|
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)
|
|
excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing)
|
|
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).
|
|
macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max().
|