Commit Graph

170 Commits (b8196d36e7f0104fb562eef67984e54ff107eae4)

Author SHA1 Message Date
rubidium 2763a427de (svn r10555) -Codechange/Fix: add a soft limit of 4096 "entities" in a station's waiting queue and a hard limit of 32768 so (malicious) people cannot cause a "denial of service" attack by filling cargo lists. 17 years ago
peter1138 c692d897cd (svn r10364) -Fix [FS#706]: checking for duplicate custom names was inconsistent, and tested all 'namespaces'. now only check names of the same type. 17 years ago
rubidium 3c3c02d0fb (svn r10332) -Fix [FS#940]: ratings where also shown on drop-off stations. 17 years ago
rubidium 5c6106cbcf (svn r10320) -Fix [FS#278]: one could only build a limited number of stations before one had to rename them. 17 years ago
rubidium 74b867db72 (svn r10269) -Fix [FS#912]: station ratings were shown for all cargos instead of only the cargos that have been transported. 17 years ago
rubidium e5c352818d (svn r10266) -Codechange: keep track of the origin, time of travel and 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. 17 years ago
rubidium 7d6c255044 (svn r10210) -Codechange: make all money related variables 64 bits, so overflowing them should become a little harder. 17 years ago
rubidium 49220cc6f1 (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. 17 years ago
rubidium b09431478d (svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded). 17 years ago
rubidium 966e2738b9 (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. 17 years ago
rubidium d58d721fab (svn r10168) -Fix [FS#879]: cannot build airport when an aircraft is flying over it. 17 years ago
maedhros 3e326085fa (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
17 years ago
peter1138 9c66082b07 (svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics. 17 years ago
rubidium 52f612d711 (svn r9996) -Fix: be more strict when building/upgrading roads and/or road stops. 17 years ago
rubidium c5d073a84f (svn r9965) -Fix: the ownership of drive through road stops on town owned roads wasn't properly reset when the road stop was removed. 17 years ago
glx 3db7a70057 (svn r9952) -Fix r9951: it was not possible to build a drive-through station over a road/tram 17 years ago
glx 8c9b4ee548 (svn r9951) -Fix: slope check was incomplete when building road over tram track (and vice-versa)
-Fix: you could build a drive-through station over a sloped road/tram track
17 years ago
rubidium 9ca9d73eea (svn r9935) -Fix: could not build a drive through station when there when you own the tram bits and the town owns the road. 17 years ago
rubidium 17390241e6 (svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0. 17 years ago
rubidium 440d723d84 (svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile. 17 years ago
rubidium 6b176e74c8 (svn r9908) -Codechange: prepare the station picker for more road types. 17 years ago
maedhros 39016328cc (svn r9905) -Feature: Allow building new stations adjacent to existing stations by holding down control. Based on a patch by Wolf01. 17 years ago
rubidium d836b25606 (svn r9895) -Fix: assertion when removing roadstop. 17 years ago
rubidium 07535d857b (svn r9893) -Fix (r9892): various small bugs that only act up when using something different than plain roads. 17 years ago
rubidium d86b5e5e93 (svn r9892) -Codechange: lots of ground work for allowing multiple types of "road" with multiple owners on a single tile. 17 years ago
peter1138 e643aeaed2 (svn r9810) -Feature: Add drag and drop removal of station tiles (Wolf01) 17 years ago
peter1138 7ce17c9577 (svn r9758) -Fix (FS#756): Ignore bit 1 (axis) of station tile layouts 17 years ago
rubidium fdf86bb4a2 (svn r9683) -Fix [FS#423]: improved loading does not use a huge amount of processing power anymore when having a lot of trains. 17 years ago
rubidium 80c259f64f (svn r9672) -Cleanup: lots of coding style fixes around operands. 17 years ago
belugas 4eb87ac62b (svn r9669) -Documentation: some more doxygen fixes 17 years ago
belugas d6651c1741 (svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections... 17 years ago
belugas addcae43fa (svn r9664) -Documentation: Doxygen corrections,errors and omissions 17 years ago
peter1138 49eb9b6fad (svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader. 17 years ago
maedhros ccaaa7d33a (svn r9609) -Codechange: Move some function prototypes out of functions.h and into landscape.h, and add a few where they didn't exist. 17 years ago
peter1138 a2cec54c9d (svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01. 17 years ago
belugas dfe5533db6 (svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near 17 years ago
maedhros 9c88baee67 (svn r9532) -Fix (r8741) [FS#708]: Make errors when building drive through road stops more descriptive. 18 years ago
celestar a1ab0d29fe (svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts) 18 years ago
celestar 49ff7cb938 (svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations 18 years ago
belugas 06d3669bb5 (svn r9400) -Codechange: Use some more representative enum names for landscape types. 18 years ago
peter1138 d7f56f1550 (svn r9388) -Codechange: variable scope and type, and standardify all CargoID loops. 18 years ago
peter1138 e485b8f694 (svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops. 18 years ago
maedhros 33e84b2c1e (svn r9178) -Fix (r7573) [FS#679]: Don't allow building docks or buoys under bridges. 18 years ago
peter1138 4177215b41 (svn r9147) -Fix (r1770, r8161): when loadin games, enroute_from and enroute_from_xy were updated in the wrong place, causing issues with TTD savegames/scenarios. 18 years ago
rubidium d609dff2ba (svn r9076) -Fix [FS#529]: the intercontinental airport used 'T-junction' runway sprites when there is no exit in the middle of the runway as in the city airport (skidd13). 18 years ago
truelight 8877d11815 (svn r9070) -Fix [FS#404]: if bribe failed and you didn't pick up cargo yet, you wouldn't ever be able to do so for a given station 18 years ago
rubidium ce919e8c71 (svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code). 18 years ago
rubidium 24c4d5b06d (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; 18 years ago
rubidium 36bb92ae24 (svn r9050) -Codechange: Foo(void) -> Foo() 18 years ago
belugas b71354dc40 (svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style. 18 years ago
richk d11e36e477 (svn r8978) -Feature: Rewrite of transfer system.
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. :)
18 years ago
tron d3b29bcacb (svn r8876) -Fix
Replace tests with magic numbers by a simple extraction template for command parameters
18 years ago
tron 1d1121f85a (svn r8875) -Fix
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
18 years ago
belugas a723770836 (svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style 18 years ago
rubidium 202702c007 (svn r8852) -Fix (r8735): make the dynamite tool for drive through road 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.
18 years ago
rubidium dcb217a6ac (svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads outside of the local authority. 18 years ago
tron 103d119c51 (svn r8841) -Fix
Remove {,u}intswap() and replace them by Swap()
18 years ago
tron f716c0b30f (svn r8833) -Fix
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
18 years ago
tron 565da62355 (svn r8828) -Fix
-Regression (r7585): On load calculate the station rectangle for all savegames, not just savegames with at least version 27
18 years ago
peter1138 ef2daa5060 (svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels. 18 years ago
tron 41d526415c (svn r8822) -Fix
Variable scope, const
18 years ago
rubidium 168a7876a0 (svn r8809) -Fix (r8715): accidentally removed a part of an expression. 18 years ago
tron 352273a5b3 (svn r8800) -Fix
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
18 years ago
tron 1ed8e7e04e (svn r8799) -Fix
Reduce variable scope
18 years ago
rubidium 0734bcfea0 (svn r8797) -Fix (8741): the 'drive through station built on town owned road' bit was not set. 18 years ago
tron 1a1129785a (svn r8796) -Fix
Remove the unused function AllocateStation() which was left over from r8125
18 years ago
tron c6743c5e11 (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 ea8eb50c0e (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 b6d2172678 (svn r8781) -Fix
A spectator cannot build stations, so do not include a special case for him
18 years ago
tron a74fad50fa (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 8aacd2585d (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 c04c8382ca (svn r8765) -Codechange: remove logic redundancy by moving it from the gui into the cmd code. 18 years ago
tron 87e03c7aa8 (svn r8755) -Fix
Abbreviate GetAirport(st->airport_type) to st->Airport()
18 years ago
rubidium 79dda0fa07 (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 0e8f006dc1 (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. 18 years ago
rubidium 154dff9873 (svn r8715) -Codechange/cleanup: replace magic numbers related to state of road vehicles with enums. Original patch by mart3p. 18 years ago
celestar d9385f2798 (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 8eab3964b4 (svn r8707) -Codechange: Turn IsValidStation into a method of Station 18 years ago
celestar 6f68ac46b8 (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 a419f4aeda (svn r8698) -Codechange: enumify the returns of VehicleEnterTile 18 years ago
rubidium eab6dd9898 (svn r8694) -Codechange: make RoadStop's status accessible via accessor functions. 18 years ago
rubidium 6bbbedc8cc (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 18 years ago
rubidium d95a872579 (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 e66028538a (svn r8540) -Fix[YAPF]: Assert when buoy is placed on NE or NW map edge (Dan) 18 years ago
tron 4216c10eb1 (svn r8539) -Fix
static
18 years ago
tron be26fbcbb3 (svn r8531) -Fix
Remove unnecessary pointer mumbo-jumbo from FindRoadStopSpot()
18 years ago
celestar 90528dc78e (svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming conflict no longer exists. 18 years ago
celestar 5678febfe2 (svn r8514) -Codechange: Turn IsBuoy into a method of stations 18 years ago
Darkvater 3c2cb4871e (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 43242302e0 (svn r8499) -Fix
-Fix (?): When removing an oil rig replace the station tile by water, not bare land
18 years ago
tron fe1691acce (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 6e20c73c33 (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 5d4241db30 (svn r8475) -Fix
Remove the unused remnants of blocked_months_obsolete
18 years ago
tron f5b41a2fbb (svn r8474) -Fix
Turn GetPrimaryRoadStop() into a method of struct Station
18 years ago
tron e3b63e6d83 (svn r8449) -Fix
-Codechange: Remove the superfluous attribute RoadStop::prev
18 years ago
KUDr 201ba1f5c3 (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 113fa175a4 (svn r8403) -Fix (r8402): Forgot to remove an enum 18 years ago
celestar b0a0086e7c (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 e85cd647e1 (svn r8400) -Fix
Simplify r8399
18 years ago
glx 35de25eec1 (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