summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
AgeCommit message (Collapse)Author
2007-12-08(svn r11604) -Fix: canal tiles were not marked dirty when surrounding tile ↵smatz
got flooded, causing glitches
2007-12-07(svn r11589) -Fix [FS#1514]: when ship depots got destroyed they always ↵rubidium
returned to water, even when it should've been canals.
2007-12-06(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a ↵smatz
lock
2007-12-05(svn r11574) -Fix: flood train stations when there are no trains on border ↵smatz
tiles too (when non-uniform stations are OFF)
2007-11-27(svn r11533) -Codechange: Rename some unclear clear_x prices member names.belugas
While at it, remove one unused entry on the clear_price_table array. It is based on ground type, and the unused one was referencing a non existing one.
2007-11-24(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them ↵skidd13
fitting to the naming style
2007-11-24(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in ↵rubidium
non-canal water where canals should have been build.
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-11-15(svn r11433) -Fix: starting OpenTTD with DOS files made it look weird out of ↵rubidium
the box. -Change: make extra sprites (the ones not in the TTD GRFs) replaceable using Action 5. -Feature: make replacing contiguous subsets of sprites in for some types possible in Action 5. Note to GRF authors: when you replaced OpenTTD sprites that are not from the TTD GRF files using Action A, your GRF will not have the intended result anymore as the sprite numbers have changed. You should replace the Action A with an Action 5 from now on.
2007-11-10(svn r11399) -Feature(ette): transparency settings can now be saved and thus ↵belugas
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.
2007-10-26(svn r11347) -Codechange: use marker loaded grf feature has_newwater when it ↵belugas
is required. (more to come)
2007-10-20(svn r11320) -Codechange: make lower halftiles at coast floodable. Patch by ↵rubidium
frosch.
2007-10-19(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both ↵rubidium
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.
2007-10-16(svn r11276) -Codechange: be more consistent with naming of some accessors.rubidium
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
2007-10-15(svn r11266) -Documentation: Add a few comments. Parts of BigBB's work on shoresbelugas
2007-09-09(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting ↵rubidium
subsystem. Patch by Progman.
2007-08-31(svn r11024) -Fix [FS#1173]: give a more correct error when building some ↵rubidium
things on tile 0; "Can't build on water" or "Too close to the edge" instead of "Vehicle in the way". Patch by SmatZ.
2007-08-31(svn r11022) -Fix: the canal border determination did not take oil rigs into ↵rubidium
consideration.
2007-08-30(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game ↵rubidium
state while being marked const. -Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30(svn r11005) -Codechange: move the tiletype specific terraforming checks to ↵rubidium
the functions for those tile types. -Codechange: barren the rail grounds on terraforming.
2007-08-14(svn r10892) -Fix [FS#1127]: trains would not get flooded when they are at ↵rubidium
the lower part of a tile that would become a coast tile after flooding. Patch by frosch.
2007-08-02(svn r10758) -Codechange: make the depot struct use the pool item class as ↵rubidium
super class.
2007-07-26(svn r10698) -Codechange [FS#1082]: simplify the code related to ↵rubidium
foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
2007-07-26(svn r10696) -Codechange: remove duplication of the "make sprite ↵rubidium
transparent" code.
2007-07-16(svn r10593) -Fix [FS#1038]: one could not remove locks that were build in a ↵rubidium
(very) old version of OpenTTD.
2007-07-16(svn r10587) -Codechange: move the string/dparam related stuff from ↵rubidium
variables.h to strings.h
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
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.
2007-06-18(svn r10205) -Codechange: refactor returning of cost, so it can be more ↵rubidium
easily modified.
2007-06-18(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).rubidium
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-14(svn r10155) -Fix [FS#601]: Airports didn't flood when there are aircraft on ↵rubidium
the airport.
2007-06-11(svn r10097) -Feature: Add support for articulated road vehicles, or ↵maedhros
callbacks 11 and 17 for road vehicles for those who prefer the technical explanation.
2007-05-24(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple ↵rubidium
road types on a single tile.
2007-05-06(svn r9797) -Feature: [NewGRF] Add action 1, 2 and 3 support for canals.peter1138
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-04-12(svn r9609) -Codechange: Move some function prototypes out of functions.h ↵maedhros
and into landscape.h, and add a few where they didn't exist.
2007-04-06(svn r9568) -Documentation: doxygen and comment changes: Root of src is ↵belugas
finally done. Now, time to start clearing as much as possible
2007-04-05(svn r9563) -Feature: Add more finer control to transparency options, ↵peter1138
including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
2007-03-19(svn r9322) -Codechange: Use cargo class to count crash/flood victimspeter1138
2007-03-10(svn r9105) -Fix [FS#629]: disable the ability to make flooding water with ↵rubidium
the canal build tool. In the scenario editor you can still make both canals and flooding water at height level 0.
2007-03-08(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the ↵rubidium
coding style (and rest of the code).
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-01(svn r8953) -Codechange: make the names of enums of WaterTileType consistent ↵rubidium
with respect to RailTileType and RoadTileType.
2007-02-26(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in ↵rubidium
a map accessors header.
2007-02-24(svn r8876) -Fixtron
Replace tests with magic numbers by a simple extraction template for command parameters
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-13(svn r8698) -Codechange: enumify the returns of VehicleEnterTilerubidium
2007-02-07(svn r8620) -Fix: buoys on canal tiles do not flood anymore (Maedhros).rubidium
2007-02-05(svn r8593) -Fix (FS#564): bridges do not get destroyed when the bridge head ↵rubidium
gets flooded and there is a vehicle on the bridge. Original patch by KeeperofTheSoul.
2007-02-02(svn r8528) -Codechange: Rename IsBuoy_() to IsBuoy() now that the naming ↵celestar
conflict no longer exists.