Age | Commit message (Collapse) | Author |
|
and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
|
|
Simplify r8399
|
|
CmdBuildRoadStop(), but it was not deleted if DC_EXEC flag was not set or if the station creation failed
|
|
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
|
|
custom station is in use.
|
|
gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
|
|
old savegames.
|
|
ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use.
|
|
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)
|
|
|
|
for savegames with version 24 or lower and do not calculate roadstop->num_vehicles when reading the roadstops as the vehicles might not be loaded at that moment.
|
|
StationRect::methods.
|
|
values.
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
|
|
Station destructor (Tron)
|
|
(still some warnings, working on it)
|
|
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).
|
|
not unsigned. This resulted in cargo magically appearing...
|
|
pointer to allocated memory instead of modifying the pointer given as parameter
|
|
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().
|
|
stillunknown and pv2b.
|
|
renamed to .cpp)
|