Commit Graph

401 Commits (0dd3ff23de8ea06ed06c5d248be0f1224c45188b)

Author SHA1 Message Date
rubidium 035d0ef16b (svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name 14 years ago
frosch e5691636e6 (svn r20126) -Fix [FS#3883]: Make railtype Terrain Type variable aware of RAIL_GROUND_HALF_SNOW. That is, resolve the sprites for upper and lower part of the foundation independently. 14 years ago
terkhen dc3eb3da76 (svn r20116) -Add: Show an specific error message when trying to convert/remove nonexistant signals. 14 years ago
terkhen dec6f67099 (svn r20114) -Add: Show an specific error message when trying to remove rail or build/convert/remove signals over nonexistant railways. 14 years ago
alberth eaae1dbfc2 (svn r20110) -Fix [FS#3695]: Do not allow building a rail track to the water using a tree-tile. 14 years ago
terkhen e66fd55fbd (svn r20100) -Fix: Give priority to ownership errors while removing rails. 14 years ago
alberth 83fd89b606 (svn r20097) -Codechange: Share constant bitset of safe level crossing slopes. 14 years ago
michi_cc e94f75095a (svn r20049) -Feature: [NewGRF] Add a railtype flag to disallow level crossings per railtype. 14 years ago
yexo ec723b7744 (svn r20003) -Feature [FS#3886]: [NewGRF] var 43 depot build date for railtypes 14 years ago
frosch a5bea603ea (svn r19931) -Fix (r19914): Convert assertion in Backup<> destructor into DEBUG() output. It was triggered on exceptions, especially when aborting world generation. 14 years ago
rubidium bcaf5f9dcb (svn r19925) -Fix [FS#3859]: one didn't pay for rail when building depots and stations, so with expensive railtypes building stations and then removing the station would be cheaper than just building the rail 14 years ago
frosch ee53807e51 (svn r19914) -Codechange: Wrap a helper class around temporary assignments of _current_company to ensure proper restoration. 14 years ago
rubidium ec3c6484a9 (svn r19817) -Fix: MSVC compile warnings 14 years ago
rubidium a70fd540fc (svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int 14 years ago
rubidium 7f43b93eae (svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named 14 years ago
rubidium cb92cdf975 (svn r19709) -Feature: NewGRF debugging/inspecting of (primarily) enabled callbacks and values of variables 14 years ago
frosch ed80045221 (svn r19654) -Codechange: Use Extract<> in more places. 14 years ago
frosch 9036e7437a (svn r19616) -Codechange: Increase transparency of 'Extract' by passing also the number of used bits. 14 years ago
peter1138 abecc4be7e (svn r19556) -Fix (r19434): Incorrect speed limit reported for rail depots with original acceleration model. 14 years ago
alberth 72d62fd6fc (svn r19494) -Codechange: Remove _error_message. 14 years ago
alberth 312c0c9906 (svn r19488) -Codechange: Use last_error data for removal in CmdRailTrackHelper() as well. 14 years ago
alberth 8109a0ad7f (svn r19483) -Codechange: Code layout fixes, and parentheses reduction. 14 years ago
peter1138 a7b93cdeb5 (svn r19434) -Add: Add rail speed limit to land area information window. 14 years ago
peter1138 369975964a (svn r19433) -Codechange: Limit rail clearance earnings to 3/4s of rail build cost, to avoid money making loophole when rail build cost is less than rail removal earnings. 14 years ago
alberth 64c38c89c9 (svn r19421) -Codechange: Remove explicit use of _error_message from CmdConvertRail(). 15 years ago
alberth bf54baf991 (svn r19420) -Codechange: Don't use _error_message to keep track of success/failure, use a had_success boolean. 15 years ago
alberth 51e71c8a36 (svn r19418) -Codechange: Code style fix for ValParamTrackOrientation(). 15 years ago
alberth cb10444807 (svn r19415) -Codechange: Forward CommandCost with an error back to the caller. 15 years ago
alberth 19dff3a6b2 (svn r19414) -Doc: Several doxygen additions and corrections. 15 years ago
alberth 6005227ac9 (svn r19372) -Codechange: CheckTileOwnership() returns a CommandCost. 15 years ago
alberth 8ae03fd9ec (svn r19370) -Codechange: EnsureNoTrainOnTrack() returns a CommandCost. 15 years ago
alberth b04de719b3 (svn r19369) -Codechange: EnsureNoTrainOnTrackBits() returns a CommandCost now. 15 years ago
alberth 014f651e65 (svn r19365) -Codechange: Move EnsureNoTrainOnTrackProc() to src/vehicle.cpp. 15 years ago
alberth 3679ab0489 (svn r19363) -Codechange: Remove use of _error_message global from TerraformTile_Track. 15 years ago
alberth d285d2e414 (svn r19320) -Fix (r19291): Forgot to set error message. 15 years ago
alberth 4c0d4990f5 (svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost. 15 years ago
alberth d0ec21fd3f (svn r19291) -Codechange: Rename HasVehicleOnTunnelBridge() to TunnelBridgeIsFree() and return a CommandCost status. 15 years ago
alberth 7171b4edb7 (svn r19190) -Add: Improve error message with track building when signals are in the way. 15 years ago
alberth b99453c09f (svn r19189) -Codechange: CheckTrackCombination() returns a CommandCost. 15 years ago
frosch 1a151edcb1 (svn r19154) -Fix: Invisible depots draw the track, so also draw the overlays. 15 years ago
frosch 2775f758a3 (svn r19153) -Fix [FS#pm](r19056): PBS reservation was drawn incorrectly for depots. 15 years ago
alberth b09f12f7ca (svn r19140) -Codechange: Move variables closer to their first use. 15 years ago
alberth a2af272a52 (svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this. 15 years ago
peter1138 30225dd306 (svn r19060) -Codechange: Draw custom depot sprites in GUI. 15 years ago
peter1138 7cc76dcbda (svn r19056) -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...) 15 years ago
terkhen ad561fc6f2 (svn r18987) -Fix: [NoAI] Make building long rails fail for AIs if there is an obstacle in the way. 15 years ago
peter1138 91c42bb596 (svn r18969) -Add: [NewGRF] NewGRF-settable rail type properties. 15 years ago
rubidium 7127338414 (svn r18872) -Codechange: introduce PaletteID and use it 15 years ago
rubidium f618acfb7d (svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) wrapper functions 15 years ago
frosch eded89633c (svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq. 15 years ago
frosch 6c72390087 (svn r18839) -Codechange: Detriplicate drawing of spritelayouts in the GUI. 15 years ago
frosch 119de3a5fe (svn r18837) -Codechange: Rename DrawStationTileSeq() to DrawCommonTileSeq() and move it to separate file. 15 years ago
rubidium 64c249d50e (svn r18836) -Codechange: make TrainUpdateSpeed a class function and update some comments (Terkhen) 15 years ago
rubidium ea240269dc (svn r18812) -Codechange: make some functions in train.h functions of Train. 15 years ago
rubidium 9467b7c6d6 (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
frosch 24dd307206 (svn r18802) -Codechange: Deduplicate drawing-code for depots and stations/waypoints. 15 years ago
michi_cc db19630001 (svn r18646) -Fix [FS#3418]: [YAPP] Don't extend the reserved path through a newly built path signal directly in front of a stopped or loading train. Also restore the reserved path in more cases after removing a signal. 15 years ago
peter1138 10753a6199 (svn r18509) -Codechange (r2515,r2753): Data for drawing single_x/y rail pieces was inverted. 15 years ago
rubidium 4ddbe1793e (svn r18379) -Codechange: move the cache updating function to its own header to reduce the include 'pathfinder' dependencies 15 years ago
rubidium 2341c2e283 (svn r18367) -Codechange: unify the ship pathfinder 'calls' 15 years ago
rubidium 2f3053508d (svn r18364) -Codechange: move the pathfinders and their related files into a separate directory 15 years ago
frosch 13a72bb345 (svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns.
If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
15 years ago
rubidium 224f4e0197 (svn r18028) -Codechange: unglobalise some functions 15 years ago
frosch 040404c5d3 (svn r18005) -Codechange: Convert the Prices struct into an array and an enum. 15 years ago
rubidium 318c2fad7c (svn r17963) -Codechange: some documentation style 15 years ago
rubidium 982b8ee5fc (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
frosch b6156da5e9 (svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback 0x36. Based on Terkhen's work. 15 years ago
smatz f85b8c4e09 (svn r17596) -Codechange: constify some tables 15 years ago
rubidium 06e490fadc (svn r17567) -Fix: some doxygen warnings 15 years ago
rubidium 10c3af4642 (svn r17493) -Codechange: store the depot index on the map 15 years ago
yexo d384908d56 (svn r17455) -Codechange: use sprite names instead of magic numbers in table/clear_land.h and change some names 15 years ago
rubidium 251573775a (svn r17447) -Codechange: rename a local variable so it doesn't collide with the name of a global function 15 years ago
rubidium 389e1bdfbe (svn r17443) -Fix (r17442): clear the depot tile after removing the depot in all cases instead of only for ships; makes removing road/rail depots not crash :) 15 years ago
rubidium a79be4de27 (svn r17363) -Fix [FS#3163] (r16717): feed autoreplace the front of vehicles, otherwise it gets distracted and bails out 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 00a9b2fd3d (svn r16938) -Codechange: introduce helper function to tell whether a tile is either a rail station or rail waypoint tile 15 years ago
rubidium 04ee98df52 (svn r16920) -Codechange: shuffle some strings around to simplify looking up vehicle type specific strings for a specific message 15 years ago
rubidium 6435dc89fe (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 15 years ago
rubidium 100cb17fa8 (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
15 years ago
rubidium 9eaee690bc (svn r16908) -Codechange: s/DepotWaypointReservation/DepotReservation/ 15 years ago
rubidium f1d6561cc4 (svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits? 15 years ago
rubidium a78751ee9a (svn r16869) -Codechange: make drawing waypoints a tiny bit more like drawing stations 15 years ago
rubidium 3927fd6be7 (svn r16864) -Codechange: make Waypoints a subclass of BaseStation. 15 years ago
rubidium 4ca5ce8904 (svn r16863) -Codechange: GetWaypointByTile -> Waypoint::GetByTile, like used for e.g. stations 15 years ago
rubidium a475a81706 (svn r16862) -Codechange: make waypoints use the same system of station station spec lists. 15 years ago
rubidium 8f4ad741aa (svn r16851) -Codechange: use StationSpecList in waypoint too 15 years ago
rubidium 34570f4e93 (svn r16842) -Cleanup: add some spaces around a few operators 15 years ago
smatz 1e1f0ab2cf (svn r16719) -Codechange: make IsArticulatedPart(), IsTrainEngine(), IsTrainWagon(), IsMultiheaded(), EngineHasArticPart() and IsRearDualheaded() members of Train 15 years ago
smatz 837b3628d9 (svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly 15 years ago
smatz d39c08fd9d (svn r16664) -Codechange: move house-related stuff from town.h and town_type.h to separate files 15 years ago
smatz bd208c30e0 (svn r16660) -Codechange: get rid of more dummy tile_type_procs 15 years ago
smatz 5d301445a2 (svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
smatz a9602401f0 (svn r16646) -Codechange: rename GetDepotByTile() to Depot::GetByTile() 15 years ago
frosch 69107b00cc (svn r16528) -Fix [FS#2959]: Draw PBS reservation as groundsprite resp. childsprite of foundation/bridgehead. 15 years ago
smatz af85994f7f (svn r16527) -Codechange: use static member functions instead of simple casts when converting Vehicle to specialised vehicle types. Includes safety check 15 years ago
alberth 580e478e4e (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. 15 years ago
rubidium 4c0542c17f (svn r16393) -Codechange: move VehicleRail to Train. 15 years ago
rubidium 6350648a6c (svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
smatz 74a667cb21 (svn r16350) -Codechange: make some 'rail track is present' checks more 'secure' 15 years ago
smatz 05db91dc65 (svn r16349) -Codechange: rename IsPlainRailTile() to IsPlainRail(), introduce shiny new IsPlainRailTile() 15 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
frosch 1205f02b43 (svn r16311) -Fix: (Get|Set)TrackBits() is only valid for RAIL_TILE_NORMAL and _SIGNALS. 15 years ago
rubidium 5c5b357043 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 15 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium f2883d4bfa (svn r15709) -Change [FS#2729]: be a tad more specific about the fact that you're building incompatible tracks when building incompatible track types on the same tile. 16 years ago
rubidium ab9788b290 (svn r15687) -Fix [FS#2723]: wrong/misleading error message when autorail builds nothing when trying to build over signals in the wrong way. 16 years ago
rubidium 9f2a906bc1 (svn r15601) -Fix [FS#2615]: bridges/tunnels don't store tram owner making it possible to remove someone's tram tracks.
-Feature: allow building road stops on road/tram tracks of competitors.
16 years ago
yexo 471c770a08 (svn r15567) -Fix [FS#2674]: When building signals by dragging from a pre/entry/combo block signal, the signal you started at became a normal block signal. 16 years ago
rubidium 656933e95f (svn r15548) -Fix: incorrect error message when removing non-existing diagonal rail (TRACK_X/Y) with the single directional rail tool (i.e. not autorail). 16 years ago
rubidium 5c8cf85613 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 16 years ago
rubidium 89e1afdaa0 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 283b3d16ab (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
smatz 9021c20b5e (svn r15299) -Cleanup: remove many redundant includes 16 years ago
peter1138 f382c2381b (svn r15050) -Codechange: Use one absolute SpriteID with offsets to draw track fences. 16 years ago
smatz d286e1df4b (svn r15039) -Codechange: fix comments regarding old AI, remove one old AI hack 16 years ago
truebrain c2406cd42d (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium 28ea38ae55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium d3144b6f04 (svn r14789) -Feature: allow scrolling with the left mouse button pressed (if enabled). Primarily useful for systems with touch screen (aapo) 16 years ago
rubidium e83cca7d13 (svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter. 16 years ago
frosch 38181a23cd (svn r14676) -Fix: Do not copy the signal type of parallel vertical/horizontal track, when dragging signals. 16 years ago
frosch a64298ebb9 (svn r14606) -Codechange: Unify usage of PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOR in spritelayout drawing.
-Fix [FS#2419]: The modifiers were not applied in all cases.
16 years ago
rubidium 9fdac4e1d0 (svn r14581) -Fix: make rail, road and canal building behave the same when overbuilding already built stretches. 16 years ago
rubidium 27187e5a69 (svn r14567) -Revert (part of 14566): don't commit testing stuff... 16 years ago
rubidium 0b3706a8d3 (svn r14566) -Fix [FS#2397]: RV's go via order would reserve a slot at the 'via' station which it never uses, which makes it unlikely that it reserves a slot for the next station and that makes queueing fail (Aali) 16 years ago
michi_cc 297392f3fa (svn r14558) -Fix (r13957): Converting the track type of a tunnel/bridge could cause trains to get stuck. 16 years ago
rubidium b0537d271f (svn r14491) -Documentation: updates/additions of doxygen docs (Alberth) 16 years ago
frosch 1505c8f384 (svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
16 years ago
rubidium b5e467978b (svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus) 16 years ago
rubidium 3cff83c67e (svn r14434) -Fix (r14432): compile warning. 16 years ago
rubidium 6ecee6cf3e (svn r14432) -Fix: tile description of tiles with only one signal that is not the normal signal showing "normal signal and <signal type on tile>". 16 years ago
rubidium f56e630e5c (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
glx 0b65ce9d46 (svn r14365) -Backport (r14364 from NoAI): add the ability do CmdBuildSingleSignal to directly place the correct signal, instead requiring multiple inputs before doing so 16 years ago
smatz 3f11e731a5 (svn r14356) -Fix [FS#2307](r14258): converting of railtype was broken for tunnels and bridges 16 years ago
smatz 6dd1163594 (svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls 16 years ago
smatz 70525eaa7f (svn r14293) -Change: do not show PBS track reservation in the intro game 16 years ago
rubidium 6e67ea1f9d (svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
16 years ago
smatz 6074de33d0 (svn r14176) -Fix: better 'safe' than ... 'save' 16 years ago
peter1138 243aba268c (svn r14165) -Codechange: When over-building rail with a different type, don't convert the rail if the engines of the new type are powered on the existing type. 16 years ago
peter1138 e999f189e6 (svn r14158) -Codechange: Initialization of rail type data from static source, so data can be changed. 16 years ago
frosch 7f5cd0e843 (svn r14129) -Fix (r13935) [FS#2247]: Signal state for PBS signals was not updated when cycling the signal side. Patch by michi_cc with a small addition from me. 16 years ago
belugas d096431936 (svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
16 years ago
rubidium 6acc3f6e59 (svn r14013) -Fix [FS#2202]: do not allow extending signals by dragging in any direction other than the track direction. 16 years ago
peter1138 f7ea5b51e7 (svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals. 16 years ago
smatz 132e7e9b69 (svn r14005) -Codechange: minor coding style fix 16 years ago
smatz 98bb9ffada (svn r13973) -Codechange [YAPP]: Improve the behavior when changing signals to not cause stale reservations. (michi_cc) 16 years ago
rubidium f0fdbf9644 (svn r13957) -Codechange [YAPP]: Free the old path reservation on removing some tracks and reroute trains afterwards. (michi_cc) 16 years ago
rubidium 64a576b854 (svn r13937) -Codechange [YAPP]: Don't cycle through two-sided PBS signals during build. (michi_cc) 16 years ago
rubidium aac73d2a04 (svn r13936) -Codechange [YAPP]: Enable the auto-signal tool to build PBS signals and honor the default signal type. (michi_cc) 16 years ago