summaryrefslogtreecommitdiff
path: root/water_cmd.c
AgeCommit message (Collapse)Author
2006-12-27(svn r7573) -Merged the bridge branch. Allows to build bridges of arbitrary ↵celestar
rail/road combinations (including signals)
2006-12-02(svn r7325) -Feature: Add support for action 5 type 0x0D, coast sprites.peter1138
2006-10-14(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to ↵Darkvater
PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
2006-09-26(svn r6513) -Codechange: unified the code to draw depot windowsbjarni
This change is intended to make it easier to make depot behaviour consistent and faster to code when adding more features in the future The user interface should hopefully not be affected by this
2006-09-05(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because ↵Darkvater
it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
2006-08-28(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else ↵rubidium
{' -> '} else {', tabs between code and comment, etc.
2006-08-26(svn r6141) -Codechange: introduced DepotID and used it as much as possibletruelight
-Codechange: DeleteDepot removes a depot from the pool -Codechange: DestroyDepot is called by DeleteDepot to remove all things where a depot depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon. -Codechange: Removed DoDeleteDepot as it was stupid
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-06(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* ↵tron
instead of a TileInfo
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-07-25(svn r5606) Replace some magic numbers by proper TrackBits enums and macrostron
2006-06-30(svn r5435) Fix (r5406): Make sure sea-level canals below bridge tiles don't ↵peter1138
flood.
2006-06-28(svn r5406) - Regression [r5403]: Fix assertion in TileLoop_Water() caused ↵peter1138
by oil rigs also using it...
2006-06-28(svn r5403) - Feature: Allow building canals at sea-level, using ctrl to ↵peter1138
toggle canal or plain water tile. This allows building of non-raisable sea-level water ways (useful in multiplayer) and dikes for low-level areas.
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-07(svn r5155) - Remove the bridge branch merge (revision r5070)tron
2006-06-03(svn r5084) - Add owner attribute to canals and locks. This makes them more ↵peter1138
useful in multiplayer games, as before, anyone could delete any canal or lock tile. This doesn't affect whose ships can use whose canals or locks.
2006-06-03(svn r5083) -Fix: Assert when trying to build a lock on a tile with trees. ↵celestar
(Thanks anboni for reporting)
2006-06-02(svn r5070) Merged the bridge branchcelestar
-Feature: Bridges can now be placed above: Any railway track combination (excluding depots and waypoints) Any road combination (excluding depots) Clear tiles (duh), including fields Tunnel entrances Bridge heads Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing There are still a number of visual problems remaining, especially when electric railways are on or under the bridge. DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
2006-05-27(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous ↵KUDr
support and users for testing.
2006-05-21(svn r4940) Remove the dubious feature of remembering the last built depot. ↵tron
It serves no real purpose except causing confusion
2006-04-25(svn r4572) Remove vehicle_leave_tile_proctron
There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing) It's a bit overkill, so just handle this one case where it can happen
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-10(svn r4342) Change the first two parameters of commands - virtual pixel ↵tron
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-04-04(svn r4269) We don't use GNU indentation styletron
2006-04-03(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a ↵Darkvater
value)
2006-04-03(svn r4252) -Codechange: Make more use of map accessors. water_cmd is now ↵celestar
map access free
2006-04-03(svn r4250) -Codechange: Further use of map accessors for water tilescelestar
2006-04-03(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 ↵celestar
by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
2006-04-02(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfotron
2006-03-31(svn r4212) -Codechange: Add and make use of an accessor that retrieves the ↵celestar
type of a water tile. Add an enum describing the different water tiles
2006-03-30(svn r4172) -Codechange: Added a few accessors to work with ShipDepots and Lockscelestar
2006-03-30(svn r4171) -Codechange: Create map accessor functions for creating ship ↵celestar
depots and locks. Make use of them
2006-03-26(svn r4120) Use the new station functions where appropriatetron
2006-03-19(svn r3987) Fix another bug in r3979 *grumble*tron
2006-03-19(svn r3980) Fix glitch in r3979 spotted by Rubidium. Maybe I'm getting too ↵tron
old for this...
2006-03-19(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to ↵tron
get information about rail tiles
2006-03-16(svn r3907) Replace many bridge related direct map accesses with calls to ↵tron
shiny new functions and mark some strange constructs with XXX
2006-03-13(svn r3846) Add functions to set the type of stuff (clear, water, rail, ↵tron
road) under bridges
2006-03-12(svn r3829) Reduce the use of _error_message by directly returning error ↵tron
codes instead of using this global variable
2006-03-10(svn r3813) Simplify strange control flowtron
2006-03-08(svn r3792) -Fix: Mark the right tile as dirty. It's just a graphical glitch ↵tron
which happend in r1592
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-01(svn r3714) Add functions to turn tiles into water and shore tilestron
2006-02-13(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, ↵tron
add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff
2006-02-06(svn r3564) Several smaller changes:tron
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2006-01-30(svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a ↵tron
TileIndex points to a tile on the map
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
2005-11-18(svn r3218) -Feature: Multiheaded train engines will now stay in the same trainbjarni
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead This fixes the assert when moving multiheaded engines (introduced in r3144) Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs -Codechange: train subtype is now a bitmask This allows fast access to info like if it is a wagon or engine and if it is in front and so on Note: savegame version bump