Commit Graph

718 Commits (10ae23d3b91375f30bdbe45a0afff3f56c7b14b1)

Author SHA1 Message Date
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
smatz 258b128a56 (svn r19614) -Codechange: "it's" => "its" where appropriate 14 years ago
frosch 95ede5ac6f (svn r19506) -Fix: Tunnels, bridges and roadstops are build with only one roadtype. 14 years ago
alberth 72d62fd6fc (svn r19494) -Codechange: Remove _error_message. 14 years ago
yexo a2ea0b7b12 (svn r19465) -Codechange: support for multi-tile hangars 14 years ago
yexo 455bb65282 (svn r19464) -Codechange: move GetHangarTile to Airport 14 years ago
yexo e062b50f15 (svn r19461) -Fix (r19355): p1 was still used in two places 14 years ago
yexo 22a27d3b62 (svn r19455) -Codechange: split all airport information in Station to a seperate class 14 years ago
yexo 44ca44a05d (svn r19450) -Fix (r19197): animation callbacks for airport tiles where never called 14 years ago
yexo 6d1c3ec97c (svn r19449) -Codechange: pay for every airport tile build, not for every tile in the rectangle where the airport is build 14 years ago
peter1138 a7b93cdeb5 (svn r19434) -Add: Add rail speed limit to land area information window. 15 years ago
alberth cb10444807 (svn r19415) -Codechange: Forward CommandCost with an error back to the caller. 15 years ago
alberth d5fe3f96c7 (svn r19405) -Codechange: CheckOwnership() returns a CommandCost. 15 years ago
alberth 59caa8ea94 (svn r19402) -Codechange: CheckAllowRemoveRoad() returns a CommandCost. 15 years ago
alberth d503642072 (svn r19401) -Codechange: Use curly braces with multi-line if statements. 15 years ago
yexo eaa878621b (svn r19396) -Fix [FS#3690] (r19351): trying to remove a too large rail station rect caused crashes 15 years ago
frosch 04e510f966 (svn r19384) -Fix: Overbuilding plain rail with stations did not update PBS reservation. 15 years ago
yexo 28fffb09e5 (svn r19355) -Codechange: add the airport layout to build as parameter to CmdBuildAirport 15 years ago
yexo fadc8a3fee (svn r19351) -Codechange: use TileArea for AfterRemoveRect 15 years ago
alberth beb46d1a7f (svn r19350) -Codechange: StationRect::BeforeAddRect() returns a CommandCost. 15 years ago
yexo e6f148119d (svn r19331) -Fix: when deleting an airport the size from the AirportSpec was used instead of the stored airport size
-Fix (r19319): detecting if a plane was landed at an airport failed
-Fix: reset the airporttile mapping when restarting a game
15 years ago
alberth 4c0d4990f5 (svn r19319) -Codechange: EnsureNoVehicleOnGround() returns a CommandCost. 15 years ago
yexo ef1b27a18d (svn r19318) -Fix [FS#3661](r19198): crash when building an airport at a station where a plane was headed 15 years ago
yexo 23af928ce9 (svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info 15 years ago
alberth 87c09ddcc0 (svn r19279) -Codechange: CheckIfAuthorityAllowsNewStation() returns CommandCost. 15 years ago
terkhen 274727ab36 (svn r19276) -Fix [FS#3649](r19229): Newly built road stops were not always repainted. 15 years ago
alberth 4d9bc56e88 (svn r19275) -Codechange: CanExpandRailStation() returns a CommandCost. 15 years ago
alberth 24762bcfce (svn r19274) -Codechange: CmdBuildAirport() returns the 'too spread out' error via CommandCost, if needed. 15 years ago
alberth 9f437abd40 (svn r19273) -Codechange: Return station joining error message when error is detected. 15 years ago
rubidium 7721a5cc51 (svn r19265) -Fix [FS#3618]: "Can't build <industry> here... <industry> in the way" showed the to-be-built industry twice, instead of the to-be-built industry and the industry that's in the way 15 years ago
terkhen 1805a10e65 (svn r19259) -Fix (r19230): Road stops were not removed in case of bankruptcy. 15 years ago
terkhen d954e1eb9a (svn r19232) -Fix (r19231): Forbid overbuilding drive-through stops using a different orientation. 15 years ago
terkhen 21c8699358 (svn r19231) -Feature: Allow overbuilding of road stops. 15 years ago
terkhen 8c512f62e2 (svn r19230) -Feature: Allow to remove multiple road stops using drag and drop. 15 years ago
terkhen f7e91fa7d2 (svn r19229) -Feature: Allow to build multiple road stops using drag and drop (Based on Wolf01 work) 15 years ago
terkhen 381ec11328 (svn r19228) -Codechange: Move an additional check from CmdBuildRoadStop to CheckFlatLandRoadStop. 15 years ago
terkhen 6ccd15fd08 (svn r19227) -Codechange: Reorganization of parameters at CmdBuildRoadStop. 15 years ago
yexo 5777a20aac (svn r19201) -Codechange: airport tiles now have 4 random bits per tile. 15 years ago
yexo 86fc08789d (svn r19199) -Codechange: add a 'name'-property to airport tiles 15 years ago
yexo 80982cc91b (svn r19198) -Codechange: store the size of stations in savegames 15 years ago
yexo 391b759d04 (svn r19197) -Codechange: introduce animation callbacks for airport tiles 15 years ago
yexo 2c502fe4a1 (svn r19196) -Codechange: change the airport tile animation info so it works just like for industry tiles 15 years ago
yexo 1975efea58 (svn r19195) -Codechange: actually draw newgrf airport tiles 15 years ago
yexo 028b7925ea (svn r19191) -Codechange: move AirportTileSpec to newgrf_airporttiles.h 15 years ago
terkhen 120a3d5942 (svn r19172) -Codechange: Move road checks from CmdBuildRoadStop to CheckFlatLandRoadStop. 15 years ago
terkhen 304806e066 (svn r19171) -Codechange: Split CheckFlatLandBelow into different functions. 15 years ago
terkhen ffcddf9295 (svn r19170) -Codechange: Make CheckFlatLandBelow use TileArea. 15 years ago
terkhen 7189db0912 (svn r19169) -Codechange: Move buildable tile checks outside of CheckFlatLandBelow. 15 years ago
alberth e3b24801e2 (svn r19132) -Codechange: No need to end a line with ;;. 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 09099eaf5a (svn r19010) -Codechange: Remove a now unneeded check at CmdBuildRailStation. 15 years ago
yexo 47527ca67a (svn r18921) -Codechange: make the preconditions for Get/Set CustomStationSpecIndex a bit more strict 15 years ago
yexo 0f5286a388 (svn r18912) -Codechange: free up a bunch of airporttile ids by using the tile animation frame 15 years ago
frosch 62b4bb6ae6 (svn r18897) -Fix: Land area information read the stationspec also for non-rail-stationtiles, which is no longer valid since r18876. 15 years ago
yexo 077cdefc9b (svn r18876) -Codechange: make sure m4 is always 0 for non-railroad station tiles 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
yexo 409266f847 (svn r18860) -Codechange: introduce a wrapper to get an hangar tile from a station 15 years ago
yexo 1486552f99 (svn r18857) -Codechange: don't rely on the fact that all airports are rectangular 15 years ago
frosch eded89633c (svn r18846) -Codechange: Merge DrawTileSeq into DrawCommonTileSeq. 15 years ago
yexo bfb2635c58 (svn r18845) -Codechange: introduce AirportTileSpec and use it for animation 15 years ago
frosch 9bbabadd29 (svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE(). 15 years ago
frosch 7b6c5faf11 (svn r18841) -Fix (r16869): Default-waypoint was drawn incorrectly for monorail and maglev in the waypoint picker. 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
frosch a2d9e85336 (svn r18832) -Fix: some indentation whitespace. 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
yexo 84cd40a483 (svn r18807) -Codechange: introduce AirportSpec and move several non-statemachine-related variables to there 15 years ago
frosch 24dd307206 (svn r18802) -Codechange: Deduplicate drawing-code for depots and stations/waypoints. 15 years ago
frosch de3148a14c (svn r18745) -Codechange: Assemble custom station foundations into a single bounding box. 15 years ago
rubidium 21b4eb70c3 (svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text when building a station could be incorrect (missing a cargo)
-Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers.
-Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
15 years ago
rubidium e48416ad4e (svn r18718) -Codechange: make a wrapper macro for looping TileAreas 15 years ago
rubidium 0213d47594 (svn r18716) -Codechange: pass a TileArea to FindStationsAroundTiles 15 years ago
rubidium e202a26990 (svn r18715) -Codechange: make StationFinder a subclass of TileArea 15 years ago
peter1138 cb74d8ef20 (svn r18708) -Feature: [NewGRF] Add support for custom station foundation graphics. 15 years ago
rubidium afb0db2549 (svn r18679) -Fix (r16993): tile area of waypoints wasn't correctly given to NewGRFs in case of multi tile waypoints 15 years ago
peter1138 10753a6199 (svn r18509) -Codechange (r2515,r2753): Data for drawing single_x/y rail pieces was inverted. 15 years ago
rubidium dcb317b3a8 (svn r18406) -Cleanup: remove some unneeded constants and code 15 years ago
rubidium 0fed86a779 (svn r18404) -Codechange: link drive through stops better together
-Feature: make penalty for road stop occupancy user configurable
-Fix [FS#1944]: road vehicles would not pick an empty drive through stop. Now they will *if* the penalty for driving around is less than the occupancy penalty
-Fix [FS#1495]: long (articulated) road vehicles could block loading of others when the following road vehicle already got 'permission' to go to the next bay even when it could not reach it
-Change: improve the throughput of the drive through road stops by letting them stop closer together
15 years ago
rubidium 2e2aa3e7da (svn r18401) -Fix: drive through road stops did not get flooded 15 years ago
rubidium e4dd60d428 (svn r18388) -Codechange: move entering/leaving of road stops to functions of RoadStop 15 years ago
frosch 992bc6c345 (svn r18381) -Codechange: Add RoadVehicle::IsBus() to simplify some stuff. 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 0f7cee89d8 (svn r18377) -Codechange: add 'cache' of the tile area of truck and bus stops. 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
rubidium 8c11679381 (svn r18342) -Fix: erroneous spaces before ; 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
smatz 2c63d0d323 (svn r18110) -Codechange [FS#3316]: search for stations nearby only once per producer (instead of once pre produced cargo type) (fonsinchen) 15 years ago
rubidium 764aae2733 (svn r18049) -Fix [FS#3310] (r16448): Crash when an articulated RV is turning on a drive through road station that gets forcefully (bankrupt) removed 15 years ago
rubidium 266511971c (svn r18035) -Fix (r16909): one could remotely crash (assert) the server on certain commands 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
frosch 3cb949a17d (svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up including of newgrf_cargo.h 15 years ago
rubidium 61720eede3 (svn r17836) -Codechange: split the CargoPacket constructor for creating 'real' new CargoPackets and saveload. For saveload we do not need to set anything except two variables (the rest is always overwritten by the load), for new 'real' cargo also pass the source_xy; dereferencing st before calling is easier than resolving st->index back to st and then dereferencing. Also don't set loaded_at_xy because that is of no importance when not loaded in a vehicle. 15 years ago
rubidium 3855302822 (svn r17782) -Fix [FS#3270]: animation wasn't removed from station tiles when keeping the rail during removal 15 years ago
smatz c3a80f1518 (svn r17589) -Codechange: rename town_acc to always_accepted 15 years ago
rubidium 2e5596025c (svn r17579) -Fix: remove doxygen docs for removed parameters, or change @param to @tparam if necessary 15 years ago
rubidium 310465da07 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 15 years ago
rubidium 06e490fadc (svn r17567) -Fix: some doxygen warnings 15 years ago
rubidium 335a542722 (svn r17547) -Feature: [NewGRF] Implement callback 145 (custom station rating) 15 years ago
rubidium c2c0f4403e (svn r17534) -Codechange: unify the naming of callback masks/flags 15 years ago
frosch 0e36260337 (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
rubidium 8c09d46e96 (svn r17481) -Fix (r16998): in cases where the northern most tile of an airport-to-build didn't touch the station you wanted it to join, but another part did, it wouldn't join the airport to the existing station 15 years ago
rubidium 08d9873001 (svn r17471) -Change: when removing a station or waypoint keep the rail unless Ctrl is pressed. This makes the behaviour consistent between the two. 15 years ago
smatz ebe2bc0a02 (svn r17470) -Fix (r17460): possible crash when overbuiling rail by station 15 years ago
rubidium c631790b6f (svn r17460) -Feature: allow building rail stations over existing rail without signals but will upgrade normal rail to electrified rail if necessary (based on patch by laurijh) 15 years ago
smatz 5d622fd840 (svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore 15 years ago
smatz 09e1ecc8ac (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() 15 years ago
rubidium 1cfc262fb0 (svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed 15 years ago
rubidium 99d46e0ad7 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
smatz 0502a6df42 (svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
15 years ago
rubidium d61be2637e (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 4579b06c89 (svn r17039) -Fix (r16988): segfault when removing rail with waypoint remover and vice versa 15 years ago
rubidium 5fa2b6ed8a (svn r17002) -Change: also support distant join for waypoints 15 years ago
rubidium d31e84b68c (svn r17000) -Change: allow overbuilding/extending waypoints 15 years ago
rubidium 3f19dde77e (svn r16998) -Codechange: rework/unify 'find station to join with' code and use it for all stations 15 years ago
rubidium 1ab2d22318 (svn r16993) -Change: make the rail waypoint builder draggable 15 years ago
rubidium b3f3ba36db (svn r16990) -Codechange: unify some (command) naming w.r.t. stations/waypoints. 15 years ago
rubidium df1c950d6a (svn r16989) -Codechange: unify the code for demolishing (dynamite) stations and waypoints. 15 years ago
rubidium 34cb882127 (svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints 15 years ago
rubidium 96e5135c21 (svn r16987) -Codechange: simplify the code to loop train station for the station demolish code 15 years ago
rubidium 7ad1530ffb (svn r16985) -Codechange: simplify the station removal code a bit by giving proper names and using some helper functions 15 years ago
rubidium 2e1cee9aaf (svn r16974) -Codechange: do simple station build checks and 'decode' p1/p2 first 15 years ago
rubidium 7beaa029f0 (svn r16972) -Fix [FS#3058] (r16942): mixup of variables caused, in some cases, rail stations to have incorrect width/height. 15 years ago
rubidium 30d9e54279 (svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP 15 years ago
rubidium d827a78ab7 (svn r16959) -Codechange: make the station joiner a bit more aware of the difference between waypoints and stations. 15 years ago
rubidium def31de3c1 (svn r16948) -Codechange: some code reductions and usage of wrapper functions 15 years ago
rubidium 58563eafa7 (svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h. 15 years ago
rubidium 2f453bd7cc (svn r16942) -Codechange: document CanExpandRailStation and remove the 'magic' array of numbers for a named struct 15 years ago
rubidium 196856f54e (svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way it's written. 15 years ago
rubidium 7b07e93b89 (svn r16934) -Codechange: introduce a simple helper function to check whether a station is pending deletion or not 15 years ago
rubidium b717e32dcc (svn r16926) -Fix (r16925): if checking whether a station can be adjoined, don't check whether 'the other station you have already found' to be valid but the station that you just found. Especially because you won't have found as station until you have found one. 15 years ago
rubidium 7f08aa4572 (svn r16925) -Fix (r16909): guard commands more against using waypoints as stations and/or accidentally reusing waypoints for stations or vice versa. 15 years ago
rubidium f8ac5d16b7 (svn r16923) -Codechange: move Cmd*Buoy* to waypoint_cmd.cpp and make them behave more like waypoints, e.g. reuse station signs of recently deleted buoys 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 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
frosch a8a3017921 (svn r16899) -Fix (r16896): Missing 'return'. 15 years ago
rubidium 6670fae515 (svn r16896) -Codechange: make station spec allocation and station animation functions work for both stations and waypoints 15 years ago
rubidium a854cb1f76 (svn r16880) -Codechange: replace magic numbers with their enums and use a clearer variable name than 'flag' in the station naming function. 15 years ago
rubidium a78751ee9a (svn r16869) -Codechange: make drawing waypoints a tiny bit more like drawing stations 15 years ago
rubidium b4f5a1eebb (svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords 15 years ago
smatz 8718babe90 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 15 years ago
rubidium 873adde908 (svn r16825) -Codechange: unify dirtying when updating the viewport signs. 15 years ago
rubidium 79deeee323 (svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords. 15 years ago
smatz 64de470917 (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft 15 years ago
rubidium ff725906a7 (svn r16791) -Codechange: unify (and document) the Remove[StationType] functions. 15 years ago
rubidium e4ef68405c (svn r16766) -Codechange: remove station->MarkDirty. It is in all cases meant to only update the sign and not invalidate the widget; the widget would be invalidated by a call before/after the call to MarkDirty or it wouldn't make sense because e.g. the window doesn't exist anymore/yet. 15 years ago
rubidium 770ad0c022 (svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names 15 years ago
rubidium 4989b4afb9 (svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign 15 years ago
rubidium 52abc92d1f (svn r16760) -Codechange: make UpdateStationVirtCoord a function of Station 15 years ago
rubidium 18fbe0aac4 (svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions 15 years ago
rubidium f97bd41ed4 (svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle. 15 years ago
smatz 20fedeb3d6 (svn r16717) -Codechange: make IsFrontEngine() member of Train 15 years ago
rubidium 3b44f44287 (svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated 15 years ago
frosch 523cde0798 (svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays. 15 years ago
frosch 4c3f480f92 (svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names. 15 years ago
smatz 837b3628d9 (svn r16673) -Codechange: rename GetProducedCargo() to AddProducedCargo() and change its behaviour accordingly 15 years ago
smatz 5ca420492f (svn r16663) -Codechange: make removing of railway station tiles faster 15 years ago
smatz 9d63b88b22 (svn r16662) -Codechange: replace GetRoadStopByTile() by RoadStop::GetByTile() 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 c113303593 (svn r16655) -Codechange: use IsRailwayStationTile() more 15 years ago
smatz 72bee4ad2d (svn r16654) -Codechange: cache industries in station's coverage area instead of searching them everytime payment is made 15 years ago
smatz f6a4d61cca (svn r16643) -Codechange: replace GetStationByTile() by Station::GetByTile() 15 years ago
smatz 61a42f42c1 (svn r16640) -Codechange: move roadstop stuff to separate files 15 years ago
yexo 679ffee940 (svn r16614) -Codechange: Make the airport min/max available year a property of the Airport class.
-Change: rename station.always_small_airport to station.never_expire_airports to make it more future-proof
15 years ago
yexo eed0de5166 (svn r16569) -Codechange: remove the gaps in the AirportTiles enum 15 years ago
yexo fc00382c0d (svn r16566) -Codechange: enumify all airport tiles 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
smatz 05c3a12463 (svn r16452) -Fix: don't trigger station animations when the station was deleted in the same tick 15 years ago
rubidium 52113477f1 (svn r16448) -Fix [FS#2909]: road vehicles ending up on the pavement when they are in a drive through station that got removed due to bankruptcy 15 years ago
smatz e419fe6d3f (svn r16442) -Codechange: use new Vehicle accessors at more places 15 years ago
rubidium c496a3e014 (svn r16421) -Codechange: do not unnecessarily remove constness or unnecessarily add it. 15 years ago
frosch eeb3f75cfe (svn r16416) -Fix [FS#2912]: Rework deleting of news when referenced vehicles/stations/industries are deleted. 15 years ago
rubidium 1324100d69 (svn r16391) -Codechange: use Train instead of Vehicle where appropriate. 15 years ago
rubidium 489253b630 (svn r16390) -Codechange: move u.road to RoadVehicle. 15 years ago
rubidium 4ae19b7451 (svn r16388) -Codechange: move u.air to Aircraft 15 years ago
rubidium 86fc432293 (svn r16382) -Codechange: make GetVehicleTrackdir a member function of Vehicle. 15 years ago
smatz 50624d5c0f (svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved 15 years ago
smatz 512db5248e (svn r16352) -Codechange: use PoolItem::GetIfValid() instead of PoolItem::IsValidID() and PoolItem::Get() 15 years ago
smatz bad5d6d6a2 (svn r16348) -Fix (r16280): buoys with invalid station ID could be left in the game 15 years ago
rubidium 57a7313ea5 (svn r16328) -Fix: desync when removing lots of stations 15 years ago
smatz 0c10daa243 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz d495dc5dbc (svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index) 15 years ago
smatz 7126bcd0e1 (svn r16308) -Fix: parameter is invalid when it's equal to length of an array (Yexo) 15 years ago
rubidium 08655368eb (svn r16297) -Codechange: silence more ICC warnings 15 years ago
frosch af12760722 (svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station. 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 e0e9a1b02e (svn r16114) -Cleanup: unify some more strings and remove some more unused strings 15 years ago
frosch 2a63faa188 (svn r16077) -Cleanup (r14456): Remove some code that is only used for some assertions, that haven't been triggered for a while. 15 years ago
rubidium 3d5a7496c7 (svn r16057) -Fix [FS#2834] (r16037): division by zero when having an order with only one station that has either middle or near end stop location and where the platform is (significantly) longer than the train. 15 years ago
rubidium 4c707c7414 (svn r16037) -Feature: allow (per order) to let a train stop at the near end, middle or far end of a platform from the point of view of the driver of the train that enters the station. 15 years ago
rubidium bdbea82217 (svn r16029) -Fix [FS#2785]: do not give "... Mines" as name to the station of oil rigs, or more general: do not add "... Mines" when the all of the cargoes are part of the liquid, passenger or mail classes. 15 years ago
rubidium 20a290cefe (svn r16025) -Fix [FS#2818]: "build separate station" in the station picker would reuse deleted stations. 15 years ago
rubidium 72a9d62638 (svn r15747) -Fix [FS#2736]: road ownership getting lost when removing a road stop. 16 years ago
rubidium c3e87f345d (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 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
smatz e7c2479216 (svn r15588) -Fix: change owner of waypoints and deleted stations when merging companies or when a company benkrupts 16 years ago
frosch 8ebe68b01b (svn r15583) -Fix: Do not use TILE_MASK when you do not want to wrap around them map. 16 years ago
glx a16a970e84 (svn r15438) -Fix (r15434): MSVC performance warning 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
belugas 2e634428f3 (svn r15293) -Feature [FS#2583]: Give a more meaningful message when towns refuse construction of noise-controlled airports 16 years ago
smatz 4eff39a54c (svn r15278) -Fix [FS#2332]: test noise limit of nearest town instead of st->town 16 years ago
peter1138 4585d9785d (svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations. 16 years ago
peter1138 afb94c252d (svn r15067) -Fix [FS#2531]: Possible compiler bug, alleviated by using SmallVector instead of using std::set. SmallVector does everything needed anyway. 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
frosch b58cdfc294 (svn r14992) -Codechange: Rename 'CheckIfAuthorityAllows' to 'CheckIfAuthorityAllowsNewStation' and unduplicate a tiny bit of code. 16 years ago
smatz c5db2ea181 (svn r14958) -Codechange [FS#1923]: when checking for unique names, compare only with manually set names
There are situations that aren't solvable (because of different language files), so if the user really wants to have duplicated name, allow him to do so. It solves desyncs between server and clients using different languages. It behaves the same in SP and MP, so users won't see the different behaviour as a bug (and even checking in SP could be worked around by the user).
16 years ago
rubidium 70b434355d (svn r14956) -Fix [FS#1832]: building new station parts didn't allocate a new station spec effectively breaking variable 41. This was due to the limited number of station specs that we can have per station. This fix makes newly build station parts create a new spec until one cannot allocate new station specs anymore and it'll revert to the old behaviour (sharing station specs). 16 years ago
rubidium 2887ff3077 (svn r14955) -Fix: newgrf station specs didn't get deallocated when building a new station part over them. 16 years ago
rubidium d197060137 (svn r14933) -Codechange: check the whether a pool item can be constructed instead of trying to make it and check for NULL. 16 years ago
rubidium 7a5798695d (svn r14919) -Feature: distant joining of stations (Frostregen and PhilSophus) 16 years ago
rubidium 9f7cab0e0e (svn r14853) -Codechange: rename GetClosestStationFromTile to GetClosestDeletedStation as that's what it does instead of finding non-deleted stations. 16 years ago
smatz 91233ea596 (svn r14828) -Codechange: move most of save/load-specific code to separate files 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
smatz c88a6199a7 (svn r14743) -Codechange: use INVALID_TILE to indicate station doesn't have queried facility (or station/roadstop is invalid) instead of 0 (Yexo) 16 years ago
smatz c6c3124c30 (svn r14700) -Fix (r1): loading of very old savegames was broken (STNS chunk is stored before MAP in old savegame) 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
frosch c7b062e92f (svn r14604) -Codechange: Simplify a function and rename it, and fix some comments. 16 years ago
rubidium 84ed955492 (svn r14598) -Feature: Action0Industries property 24 (industry suuplies default name for nearby station). 16 years ago
frosch 738611fb70 (svn r14529) -Codechange: Turn FindCatchmentRadius() into Station::GetCatchmentRadius(). 16 years ago
rubidium 52ac592422 (svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus) 16 years ago
rubidium 33203c67c1 (svn r14526) -Fix [FS#2379]: make sure trains stop at the end of a station; a 3/8th length train did stop 2/8th of it's length too early causing a 63/8th long train not to fit in a 4 tile station. 16 years ago
smatz d871cbb847 (svn r14508) -Fix (r14501): arrays were not properly zeroed 16 years ago
rubidium 166b7a974d (svn r14501) -Codechange: use sizeof(variable) instead of sizeof(type) or hardcoded amounts (magic constant) for memset (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
frosch 9e3b1a8b74 (svn r14459) -Fix [FS#2343]: Update station-spread when building or removing oilrigs to make them consistent with station-spread-calculation on game-load and to make oilrig-stations behave like any other station type. 16 years ago
frosch 921bdf783f (svn r14456) -Fix: Obiwan in catchment-area and station-spread of docks. 16 years ago
rubidium 4b5d506313 (svn r14446) -Fix [FS#2330]: when a road stop gets moved make sure to update the destination of RVs going to that road stop. 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
smatz e543181b12 (svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies) 16 years ago
smatz 50b955542d (svn r14323) -Fix (r14064): forgot a return... 16 years ago
rubidium 18a0c351cc (svn r14308) -Fix [FS#2268]: pay extra when tram/road bits need to be build for a roadstop. 16 years ago
smatz 7e4e999a97 (svn r14307) -Fix: when deleting a station, remove news items regarding it 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
rubidium 8dffbcfd26 (svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client. 16 years ago
smatz 5719c0f16d (svn r14022) -Fix (r13957) [YAPP]: Removing station tiles could produce stale reservations, too. (michi_cc) 16 years ago
smatz c665a2f233 (svn r14021) -Fix (r13957) [YAPP]: Overbuilding station tiles with non-track tiles could produce stale reservations. (michi_cc) 16 years ago
frosch d8bfe46027 (svn r13996) -Fix (r13845): Oilrigs from pre r13838 save games can have unknown water class. 16 years ago