Commit Graph

378 Commits (17c3ce8632776b546d338e825c085487a6ad6f93)

Author SHA1 Message Date
rubidium 9daf7e749c (svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the data is now always accessible 10 years ago
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
frosch f0e7f9982a (svn r26277) -Add [FS#5849]: Display speed limit also for road bridges in the TileInfo window. 11 years ago
rubidium b53da6a6f5 (svn r26111) -Fix: theoretical case where sprite table could be overread for aqueducts that start at flat land 11 years ago
rubidium be6b64f4e6 (svn r26072) -Cleanup: mark some unreachable default cases by NOT_REACHED() 11 years ago
frosch 1e41b38b7d (svn r25231) -Fix (r25227): Also update infrastructure counts. (adf88) 11 years ago
frosch d3b9a55535 (svn r25227) -Fix [FS#5541]: Give bridges owned by noone (from bankrupt companies) to the first company which replaces the bridge. Everyone could have removed/rebuild the bridge anyway. 11 years ago
frosch 1e9049e0bd (svn r25141) -Fix: When extra dynamite was disabled, towns would be allowed to clear bridges with trams. 11 years ago
frosch eda4cfeabe (svn r24912) -Fix [FS#5389]: Upgrading bridges could steal road types. (adf88) 12 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
planetmaker 812346cad9 (svn r24895) -Fix [FS#5436]: Allow downgrade of road bridges in the scenario editor 12 years ago
frosch 25203976f0 (svn r24413) -Add [FS#5221-ish]: Allow overbuilding bridges with the same type when adding a roadtype. 12 years ago
rubidium 41e5c839e0 (svn r24179) -Codechange: move some variables of Town to TownCache 12 years ago
michi_cc 9101d2e2d2 (svn r23952) -Feature: [NewGRF] Customisable tunnel portals for rail types (sprites by Snail). 13 years ago
frosch 1eac425e0b (svn r23864) -Fix: Railtype overlays were drawn 'only transparent' on invisible bridges. 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
truebrain 084f4e6aac (svn r23629) -Add: allow ScriptRoad::BuildRoad, ScriptBridge::BuildBridge (for roads) and ScriptTunnel:BuildTunnel (for roads) to work for GameScript 13 years ago
frosch 1bb9639862 (svn r23586) -Fix: Draw PBS reservation also for bridges with railtype overlays. 13 years ago
frosch 89c263c2df (svn r23584) -Fix: Draw PBS reservations also for tunnels with railtype overlays. 13 years ago
michi_cc c06bbb4863 (svn r23413) -Add: Company infrastructure counts for canals. 13 years ago
michi_cc a29a9d94b7 (svn r23412) -Add: Company infrastructure counts for road. 13 years ago
michi_cc d30fcd4e35 (svn r23411) -Add: Company infrastructure counts for rail. 13 years ago
yexo 6a272233b3 (svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitions 13 years ago
rubidium 9782b7bb0a (svn r23110) -Codechange: let the flying altitude return ints are well 13 years ago
rubidium 2a2c102b0b (svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables 13 years ago
rubidium 459c9523e8 (svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well 13 years ago
rubidium 19eabdba2c (svn r23106) -Codechange: pass int* to GetTileSlope and friends 13 years ago
rubidium 1dc685aeea (svn r23100) -Codechange: remove pointless multiplications by TILE_HEIGHT for the terraform code 13 years ago
rubidium f0f17a77ba (svn r23098) -Codechange: remove pointless multiplications by TILE_HEIGHT from the tunnel code 13 years ago
rubidium d0689c2924 (svn r23097) -Codechange: remove pointless multiplications by TILE_HEIGHT from the bridge code 13 years ago
rubidium 69162621d8 (svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code 13 years ago
rubidium 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
terkhen bbdc8fdba7 (svn r22821) -Fix [FS#4741]: Allow to demolish aqueducts built in the scenario editor. 13 years ago
rubidium 7b418502ab (svn r22700) -Fix [FS#4680]: cost of changing bridge type is undercalculated when adding road types as well (based on patch by adf88) 13 years ago
rubidium ff143c6708 (svn r22413) -Document: even more stuff 13 years ago
rubidium 1a515e6344 (svn r22405) -Document: some more "random-ish" tidbits 13 years ago
rubidium 0395aab420 (svn r22019) -Codechange: s/functions.h/clear_func.h/ 14 years ago
rubidium 46b3d114a8 (svn r21959) -Change: replace longbridges with custom maximum bridge and tunnel length setting 14 years ago
rubidium 71f4067d19 (svn r21956) -Cleanup: always draw the bridge pillars 14 years ago
terkhen 28676531b0 (svn r21780) -Change: Keep aqueducts and road/tram tunnels and bridges after removing a company. 14 years ago
rubidium c8a4d122c5 (svn r21743) -Fix [FS#4386]: coast tiles weren't drawn under bridges 14 years ago
rubidium 293ede7bdf (svn r21471) -Change [FS#4153]: make building aqueducts behave more like building tunnels. They can't be built on flat (or foundationed) tiles, so there is at most one destination tile like there is only one for tunnels 14 years ago
rubidium fe841c3d0b (svn r21468) -Change: make sure the end of a bridge is always a valid tile as well, and for aqueducts show "wrong land slope" when that would be more appropriate than "bridge heads not at same height" 14 years ago
frosch 55d604e60d (svn r21291) -Fix: Treat objects on water like water in more cases. 14 years ago
frosch 0fff26db97 (svn r21289) -Fix [FS#4133]: Make terraforming and tunnel-excavation handle DC_AUTO-clearable multitile objects. 14 years ago
rubidium 395335c197 (svn r21153) -Change: unify the moment trains/road vehicles become (un)visible when entering/leaving a tunnel. As a side effect some tunnel related glitches are gone. 14 years ago
rubidium ed18d02e9a (svn r21142) -Codechange: replace magic bridge length constants with proper constants (uni657) 14 years ago
rubidium 65e6c9fd12 (svn r21141) -Codechange: Use the new 'frame' variable for the bridge entry code as well (Hirundo) 14 years ago
rubidium b50aeb9552 (svn r21140) -Codechange: Use the new 'frame' variable to handle road vehicles entering or leaving a tunnel (Hirundo) 14 years ago
rubidium f118744ff2 (svn r21139) -Codechange: Use the new 'frame' variable to handle trains entering or leaving a tunnel (Hirundo) 14 years ago
rubidium 8b8b4e083c (svn r21138) -Codechange: Introduce the concepts of frame and position in the tunnel / bridge entering code (Hirundo) 14 years ago
rubidium d1dfb27699 (svn r21136) -Fix [FS#4213]: bridge speed limits should apply to all wagons of a vehicle, not just the head of the vehicle 14 years ago
belugas ab9279b5a0 (svn r21079) -Codechange: replace magic numbers with already defined constant ("inspired" by Hirundo's work) 14 years ago
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
frosch af6c12d586 (svn r21013) -Cleanup: Replace some magic value mappings with existing conversion functions. (Hirundo) 14 years ago
frosch b10fbd477d (svn r21012) -Codechange: Deduplicate some code. (Hirundo) 14 years ago
frosch bcd006e4fc (svn r20961) -Cleanup: Remove redundant/duplicate invisibility test. (uni657) 14 years ago
frosch cdf985bff4 (svn r20947) -Change: Draw bridgepillars with correct length on all tile corners by drawing only half of the pillar sprite if required. (based on patch by uni657)
Note: Cantilever and tubular bridges will still look weird when using orignal graphics. Use OpenGFX instead :)
14 years ago
frosch 3edf041a43 (svn r20946) -Codechange: Add helper function to draw pillar columns. 14 years ago
frosch 01be182880 (svn r20945) -Codechange: Add helper function to draw single pillar sprites. (based on patch by uni657) 14 years ago
frosch 3866d8e2d1 (svn r20944) -Codechange: Bail out early in DrawBridgePillars(). (uni657) 14 years ago
frosch 58ed553068 (svn r20943) -Codechange: Name some magic constants. (Based on patch by uni657) 14 years ago
frosch 3fb7f5aa87 (svn r20802) -Fix: Building bridges on water/watery objects behaved inconsistently for towns and the bridge selection GUI. 14 years ago
yexo 2e054c19ad (svn r20732) -Fix: when trying to build a bridge over an object, try to autoremove the object if it's too high 14 years ago
rubidium 41a80490be (svn r20668) -Codechange: add (more) support for bridges over objects 14 years ago
rubidium 3e9e1b8e65 (svn r20638) -Codechange: split object.h 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
terkhen 78fd08c7b2 (svn r20424) -Fix: Rename members of TileContext (TC_NORMAL conflicted with an existing define on MinGW). 14 years ago
frosch 7f1425c333 (svn r20423) -Change [FS#3947]: Make snow on bridges depend on bridgeheight. 14 years ago
frosch b6cf38a912 (svn r20422) -Change [FS#3947]: Resolve tracksprites on bridges always using the southern bridgehead as tile. 14 years ago
frosch c2b1c624dd (svn r20421) -Change [FS#3947]: Make snowyness of bridgehead depend on the tileheight at the entry edge. 14 years ago
rubidium 3da3d131c6 (svn r20411) -Codechange: rename unmovables as quite a lot of them are actually movable; e.g. HQ and owned land are pretty movable. 14 years ago
rubidium 1c86321d35 (svn r20340) -Codechange: introduce some flags for objects and use them in some places 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 5a836cdec7 (svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name 14 years ago
rubidium 6328429aac (svn r19881) -Fix [FS#3827]: pay for the rail/road when constructing tunnels and bridges 14 years ago
rubidium 548dd91ef0 (svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well 14 years ago
terkhen 0107562a86 (svn r19727) -Fix (r19720) [FS#3795]: Demolishing bridges or aqueducts caused a crash. 14 years ago
terkhen 52ab1c7d40 (svn r19720) -Feature: New base costs for building/clearing canals, building/clearing aqueducts and building/clearing locks. 14 years ago
terkhen 3be66a5e79 (svn r19717) -Fix: The cost of the first bridge type was added when building an aqueduct. 14 years ago
frosch 75d4bc947d (svn r19654) -Codechange: Use Extract<> in more places. 14 years ago
frosch 0f656010c8 (svn r19637) -Codechange: Pass complete TransportType to CmdBuildTunnel. 14 years ago
alberth fa8f227a97 (svn r19561) -Feature: Give more detailed error message when trying to build a too long bridge. 14 years ago
alberth fb4ca3e569 (svn r19560) -Fix: Bridge build error message should not show the same message twice. 14 years ago
alberth 7f5a0751e2 (svn r19559) -Codechange: Rename CheckBridge_Stuff() to CheckBridgeAvailability(). 14 years ago
frosch f45e579923 (svn r19506) -Fix: Tunnels, bridges and roadstops are build with only one roadtype. 14 years ago
alberth 05d705e077 (svn r19494) -Codechange: Remove _error_message. 14 years ago
alberth a9d4eb86b8 (svn r19487) -Codechange: Removed non-reachable return statement. 14 years ago
alberth 2dcca0ca76 (svn r19486) -Codechange: Code style, move var declarations closer to their first use. 14 years ago
alberth c3471d98f3 (svn r19485) -Codechange: Re-implement CalcBridgeLenCostFactor() in a more readable way without changing computed costs. 14 years ago
alberth cced6b35cb (svn r19484) -Codechange: Rename parameter 'x' of CalcBridgeLenCostFactor() to 'length'. 14 years ago
alberth f05a8635fd (svn r19483) -Codechange: Code layout fixes, and parentheses reduction. 14 years ago
alberth 073f627930 (svn r19482) -Doc: Doxygen additions/updates. 14 years ago
peter1138 604da97364 (svn r19434) -Add: Add rail speed limit to land area information window. 15 years ago
alberth 7cc68f493d (svn r19405) -Codechange: CheckOwnership() returns a CommandCost. 15 years ago
alberth 19afc9fdc0 (svn r19404) -Codechange: CheckAllowRemoveTunnelBridge() returns a CommandCost. 15 years ago
alberth 6b6ff9c52b (svn r19400) -Codechange: CheckforTownRating returns a CommandCost. 15 years ago