Commit Graph

58 Commits (50dbea69d6f5e1a5006a695a039e8995f2de5b04)

Author SHA1 Message Date
tron 8db5c84f67 (svn r8800) -Fix
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
18 years ago
tron 6c5b59b6ec (svn r8799) -Fix
Reduce variable scope
18 years ago
rubidium 66ad0c7d0c (svn r8797) -Fix (8741): the 'drive through station built on town owned road' bit was not set. 18 years ago
tron 38fedf20ce (svn r8796) -Fix
Remove the unused function AllocateStation() which was left over from r8125
18 years ago
tron 25a3485e71 (svn r8794) -Fix
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
18 years ago
tron 69bacedab9 (svn r8782) -Fix
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
18 years ago
tron 97acc0ff25 (svn r8781) -Fix
A spectator cannot build stations, so do not include a special case for him
18 years ago
tron e175a85e10 (svn r8779) -Fix
-Codechange: Use a more generic test, which tests the allowed aircraft instead of hardcoding the airport type numbers, to generate station names
18 years ago
tron 72857162dd (svn r8767) -Fix
-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
18 years ago
rubidium c96f7c91e5 (svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code. 18 years ago
tron 128caa5050 (svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
18 years ago
rubidium dcc7dd936e (svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more robust and add roadstops.grf to the list of required grfs. 18 years ago
rubidium a2999dadc9 (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. 18 years ago
rubidium b5dade8098 (svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p. 18 years ago
celestar 72e74c29d4 (svn r8709) -Fix/Codechange: Rename the function GetStationPlatforms into 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. 18 years ago
celestar a89f2fd610 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 18 years ago
celestar 82c696688c (svn r8705) -Codechange: Increased the number of airport blocks to 64. This involves changing the enum of airport blocks to a static const uint64 as SOME platforms do not support 64-bit enums 18 years ago
rubidium eb5648f382 (svn r8698) -Codechange: enumify the returns of VehicleEnterTile 18 years ago
rubidium 3f74dbe5c0 (svn r8694) -Codechange: make RoadStop's status accessible via accessor functions. 18 years ago
rubidium 39454ab61a (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 18 years ago
rubidium 61c796b825 (svn r8619) -Fix: store the ownership of a water tile in the buoy tile and 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. 18 years ago
KUDr 5198acfe22 (svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan) 18 years ago
tron dede093639 (svn r8539) -Fix
static
18 years ago
tron 097b12f998 (svn r8531) -Fix
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
18 years ago
celestar c95736046b (svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists. 18 years ago
celestar 4d0d6864ee (svn r8514) -Codechange: Turn IsBuoy into a method of stations 18 years ago
Darkvater a5228fd33c (svn r8507) -Codechange/Feature: Don't remove player-owned property on-load in the scenario editor. Add a button to the landscape window to do this. 18 years ago
tron fc9e84b04e (svn r8499) -Fix
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
18 years ago
tron cb859f4a6a (svn r8477) -Fix
-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
18 years ago
tron 1266624e88 (svn r8476) -Fix
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*)
18 years ago
tron 49fabae7a1 (svn r8475) -Fix
Remove the unused remnants of blocked_months_obsolete
18 years ago
tron 36d965a697 (svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
18 years ago
tron 5a9873c3bd (svn r8449) -Fix
-Codechange: Remove the superfluous attribute RoadStop::prev
18 years ago
KUDr 55ac8f843a (svn r8414) -Codechange: Use own AutoPtrT instead of std::auto_ptr.
-Simplifies assignment from raw pointers
 -Should be harder to crash the program by incorrect assignment into it.
 -Should help with MorphOS compilation errors
18 years ago
celestar 2745180a50 (svn r8403) -Fix (r8402): Forgot to remove an enum 18 years ago
celestar dfb5556376 (svn r8402) -Codechange: Move RoadStop-specific enums to the RoadStop class, and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop 18 years ago
tron 1da6c719fd (svn r8400) -Fix
Simplify r8399
18 years ago
glx 1b48fd232f (svn r8399) -Fix (r8185): a new road stop was always created in CmdBuildRoadStop(), but it was not deleted if DC_EXEC flag was not set or if the station creation failed 18 years ago
KUDr f0e463ecca (svn r8231) -Fix (r8125): MP desync caused by calling Random() from station 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) 18 years ago
tron d80009c611 (svn r8212) -Fix
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
18 years ago
tron 4ff9b8a2a7 (svn r8207) -Fix
Remove the write-only attribute RoadStop::station
18 years ago
peter1138 c6aeab5cb8 (svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use. 18 years ago
celestar bdb9543f7c (svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson) 18 years ago
rubidium f9c6f7d0a7 (svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for old savegames. 18 years ago
peter1138 0e86608bf6 (svn r8153) -Codechange: Change UpdateStationAcceptance() and ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use. 18 years ago
celestar f69794b8c1 (svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get 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) 18 years ago
KUDr 97ee8287ab (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) 18 years ago
rubidium 2352e76a8f (svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong 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. 18 years ago
KUDr 48c99c8174 (svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods. 18 years ago
peter1138 ca9843424b (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit 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.
18 years ago