Commit Graph

87 Commits (0fce8dbf1f54b922b3dc8adf8c96f57221451752)

Author SHA1 Message Date
skidd13 c0a2c0c23e (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 17 years ago
truelight 58e5282e38 (svn r11407) -Fix: do not allow building of tram-tracks when they are not available (SmatZ) 17 years ago
belugas f26a591e6c (svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only.  The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
17 years ago
truelight f1df43ec21 (svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13) 17 years ago
truelight 19d13f90b3 (svn r11369) -Codechange [FS#1390]: changes some int to int8 in macros.h, as they describe a bit-position, which fits perfectly in an int8 (max 64) (skidd13)
-Codechange [FS#1390]: added consts in macros.h functions, so compilers can optimise better (skidd13)
-Codechange [FS#1390]: remove HAS_SINGLE_BIT, as COUNTBITS does the same (skidd13)
17 years ago
rubidium eadd6765e1 (svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo. 17 years ago
rubidium 8342c18fb5 (svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround. 17 years ago
maedhros ee4823857f (svn r11265) -Feature: Make more advanced rail types more expensive to build. 17 years ago
rubidium ea433ffc64 (svn r11206) -Fix [FS#1299]: half tram bits could be removed in some cases. Based on patches by frosch and skidd13. 17 years ago
rubidium f54a823129 (svn r11201) -Fix [FS#1283]: minor issue with building one way roads one tile long. Patch by SmatZ. 17 years ago
rubidium 80a3590bf5 (svn r11172) -Codechange: rewrite of town road building and addition of the possibility to clean up unconnected road bits during the local road reconstructions. Based on a patch by skidd13. 17 years ago
rubidium 5c9553d48b (svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch. 17 years ago
rubidium 3055d42fc4 (svn r11107) -Feature: some tool so one can still build tunnels under rails (and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch. 17 years ago
rubidium c97804461e (svn r11059) -Fix [FS#1182]: inconsistency between Rail<->ElRail conversions of different kinds of rail containing tiles (normal rail, stations, depots, etc). Patch by SmatZ. 17 years ago
rubidium 88133a97b5 (svn r11056) -Fix [FS#1213]: road/tram tiles would not always get marked dirty properly, causing glitches for non-local players. Patch by SmatZ. 17 years ago
rubidium 6f76bc2449 (svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas. 17 years ago
rubidium f4482907da (svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
-Codechange: barren the rail grounds on terraforming.
17 years ago
rubidium 235ad4ab6b (svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that. 17 years ago
rubidium 71dec585f3 (svn r10890) -Fix [FS#1125]: removing road with the road removal tool would also work with a negative bank account, making the bank account even more negative than it was. 17 years ago
rubidium 36da8a2a38 (svn r10833) -Fix [FS#1115]: assertion (different cost between test and execution) of overbuilding road tunnels with tram tracks (and vice versa) when the dragged area contains both ends of the tunnel. 17 years ago
rubidium c60988a1d5 (svn r10758) -Codechange: make the depot struct use the pool item class as super class. 17 years ago
rubidium 2800a49f03 (svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type. 17 years ago
rubidium 8cc340681d (svn r10718) -Fix (r10698): when having a road corner on a slope removing the road bit perpendicular on the slope made the foundation disappear. 17 years ago
rubidium 903a0a08c2 (svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch. 17 years ago
rubidium a26ef1ee3a (svn r10696) -Codechange: remove duplication of the "make sprite transparent" code. 17 years ago
rubidium e97c2bf621 (svn r10695) -Fix [FS#1079]: building single pieces of road over tramtrack or vice versa on slopes did not work as expected. 17 years ago
rubidium df009178d4 (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 17 years ago
rubidium fd93cd0411 (svn r10502) -Fix [FS#1017]: trying to get the town from a tile that can never be associated with a town. 17 years ago
rubidium bf0be8f0bc (svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits. 17 years ago
rubidium 911f37ee94 (svn r10221) -Fix: the one way sprites weren't drawn in the correct order, so they could remove the tramtrack in some cases. 17 years ago
rubidium 773a7c9cb6 (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. 17 years ago
rubidium 82e79b847e (svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded). 17 years ago
rubidium 3ccc83e640 (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. 17 years ago
maedhros c186f91cbd (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
rubidium 740eb9d89a (svn r10053) -Fix: could not clear a level-crossing tile with tram tracks. 17 years ago
rubidium 4a62006c39 (svn r10004) -Fix: trams can always intersect/have junctions on one way roads (because they only work for busses and lorries). 17 years ago
rubidium 294a154bf7 (svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road. 17 years ago
rubidium a4750af656 (svn r9996) -Fix: be more strict when building/upgrading roads and/or road stops. 17 years ago
rubidium 1e371a99d2 (svn r9991) -Fix: one could build road when trams were driving on the tile and vice versa. 17 years ago
rubidium 0bdd409765 (svn r9986) -Fix (r9934): flooding towns could not remove tram tracks (boekabart). 17 years ago
rubidium 4f9a0f750a (svn r9964) -Fix: removing of road should not be free of charge. 17 years ago
maedhros 4f6ffd4e12 (svn r9955) -Codechange: Make _roadveh_enter_depot_unk0 slightly less mysterious. 17 years ago
glx 39463156df (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 fe9bf75436 (svn r9949) -Fix: (road) depots got deowned on bankrupts. 17 years ago
rubidium 9e8f500f7f (svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire? 17 years ago
rubidium 5bdf6833b3 (svn r9947) -Fix [FS#807]: don't check whether roadbits may be built when they are already built for another type. 17 years ago
rubidium ff0bf9fb1f (svn r9946) -Fix: more places that weren't correctly marked dirty... 17 years ago
rubidium 567035ebb5 (svn r9945) -Fix: bridges were not properly marked dirty when adding/removing roadtypes. 17 years ago
rubidium 336c9a5cc4 (svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype. 17 years ago
rubidium b741bd1b1e (svn r9942) -Fix [FS#804]: crash when upgrading both ends of a bridge. 17 years ago