summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
AgeCommit message (Collapse)Author
2018-04-15Codechange: Replace magic numbers with the proper enum.Michael Lutz
2018-03-05(svn r27973) -Fix: [FS#6662] Avoid tile operations outside map border when ↵peter1138
building lock.
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2015-04-26(svn r27254) -Fix [FS#6264]: When building a lock on DC_AUTO-removable ↵frosch
water-based objects, the water class was always set to canal.
2014-09-21(svn r26879) -Codechange: remove most MayHaveBridgeAbove calls since the ↵rubidium
data is now always accessible
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-16(svn r26344) -Change [FS#5907]: Do not flood shores of type MP_TREE ↵planetmaker
needlessly (MJP)
2013-10-12(svn r25849) -Codechange: Introduce IsTileFlat to not compute full slope ↵zuu
information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
2013-05-06(svn r25229) -Feature: [NewGRF] Variable 0x82 for canals and rivers (dike map)planetmaker
2013-05-06(svn r25220) -Change [FS#Eddi]: Consider map border as water wrt. ↵frosch
river/canal continuation.
2013-02-05(svn r24972) -Fix [FS#5258]: do not make overbuilding rivers with canals ↵rubidium
insanely expensive; there is no real need to fill the river with dirt first, just excavate it a bit and build borders
2013-01-20(svn r24924) -Fix (r24923): Make sure that autoslope on steep coast tiles ↵planetmaker
cannot not leave invalid canals
2013-01-20(svn r24923) -Fix [FS#5441]: When an object built on a river is removed, ↵planetmaker
restore the river, if possible also on slopes (based on patch by Supercheese)
2012-12-23(svn r24846) -Add: Advanced settings to disable certain sound effects.frosch
2012-05-26(svn r24284) -Codechange: Remove NewsSubtypes and directly use NewsTypes and ↵frosch
NewsFlag instead.
2012-02-09(svn r23920) -Fix: Consider only the middle tile of a lock for ↵frosch
lock-infrastructure costs. The other two tiles may be owned by other companies. Also do not count the middle tile of a lock as canal, independent of whether it is build on ground or river slope.
2012-01-03(svn r23735) -Codechange: remove ~50 includes from headers that weren't neededrubidium
2012-01-03(svn r23725) -Fix (r23723): compile before commityexo
2012-01-03(svn r23724) -Codechange: split of the check to see if ambient sounds are ↵yexo
enabled to a header file allowing compilers to inline that check
2012-01-03(svn r23723) -Codechange: speedup flood checks a bityexo
2011-12-29(svn r23686) -Fix [FS#4921] (r23413): Infrastructure count of ↵michi_cc
canals/locks/ship depots wasn't updated properly when a company went into bankruptcy or was taken over.
2011-12-19(svn r23622) -Add: a set of events to trigger in a GameScripttruebrain
2011-12-13(svn r23512) -Change [FS#4872]: Allow to place locks also on river rapids ↵planetmaker
and restore rivers, if locks are deleted
2011-12-07(svn r23443) -Fix (r23413): Building of locks in SE failed.frosch
2011-12-03(svn r23413) -Add: Company infrastructure counts for canals.michi_cc
2011-11-29(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)truebrain
2011-11-20(svn r23284) -Fix [FS#4845]: Pathfinders go haywire when you build a lock ↵rubidium
over a ship going perpendicular to the axis of the new lock
2011-11-08(svn r23160) -Fix: wrong comments in a lot of TileTypeProcs definitionsyexo
2011-11-04(svn r23116) -Fix (r23114): Ambient sound effect callback was called for ↵michi_cc
unsupported tile types.
2011-11-04(svn r23114) -Feature: [NewGRF] Ambient sound effect callback.michi_cc
2011-11-04(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z ↵rubidium
related variables
2011-11-04(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type ↵rubidium
functions use int z as well
2011-11-04(svn r23106) -Codechange: pass int* to GetTileSlope and friendsrubidium
2011-11-04(svn r23099) -Codechange: remove pointless multiplications by TILE_HEIGHT ↵rubidium
for the water/river code
2011-11-04(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use itrubidium
2011-11-04(svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and ↵rubidium
use it
2011-11-04(svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ ↵rubidium
functions if they return the Z in pixels (like TilePixelHeight)
2011-08-20(svn r22773) -Add: Some grass around rivers in desert areas.michi_cc
2011-07-10(svn r22646) -Codechange: Simplify MP_WATER map accessors, esp. for locks ↵frosch
and depots. (based on patched by adf88 and michi_cc)
2011-07-07(svn r22638) -Fix: Keep the previous owner of the upper and lower lock parts ↵michi_cc
if they are built on existing water.
2011-02-19(svn r22110) -Codechange: Remove WaterDrawTileStruct and use ↵frosch
DrawTileSprites/DrawTileSeqStruct instead.
2011-02-19(svn r22108) -Codechange: Replace some magic with some other magic though ↵frosch
less easy to break.
2011-02-19(svn r22107) -Cleanup (r1903): Remove unused struct.frosch
2011-02-07(svn r22018) -Cleanup: remove some (now) unneeded includes of functions.hrubidium
2011-02-06(svn r21993) -Fix (r19720): When building a lock on dry land costs for ↵planetmaker
clearing water were deducted rather than for building canals
2011-02-04(svn r21953) -Remove [FS#4456]: the non-uniform stations setting. Support ↵smatz
for uniform stations has been broken for over a year
2010-11-21(svn r21290) -Codechange: Add HasTileWaterGround() to deduplicate some tests.frosch
2010-09-07(svn r20763) -Fix [FS#4113](r20749): The bridgetest on building shipdepots ↵frosch
can no longer rely on being only called for clear water tiles.
2010-09-05(svn r20749) -Fix: allow overbuilding objects with buoys and ship depotsyexo
2010-09-05(svn r20748) -Fix: overbuilding an object tile with sea under it with a ↵yexo
canal didn't take the cost for clearing the sea into account