summaryrefslogtreecommitdiff
path: root/town_cmd.c
AgeCommit message (Collapse)Author
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-08(svn r5171) Get rid of an ungly hack in the load routine, which temporarily ↵tron
turned house and road tiles into void tiles to calculate the closest town
2006-06-07(svn r5155) - Remove the bridge branch merge (revision r5070)tron
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-20(svn r4920) Remove parameters, which get only used in certain functions, by ↵tron
splitting those functions. At least in the case of checking for oil industry restrictions this makes the check conditions more clear.
2006-04-27(svn r4591) -Fix (FS#122) Game no longer errors out when "Many random towns" ↵celestar
is selected in the scenario editor. -Side effects: - Removed one global variable from variables.h - Remove an ugly hack for the "many random towns" function
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-24(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures ↵belugas
toguether.
2006-04-23(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}tron
2006-04-23(svn r4547) Revert a part of r4541 to silence an assertion for nowtron
2006-04-23(svn r4541) Add a type for slopes and replace many magic numbers by the ↵tron
appropriate enums
2006-04-18(svn r4471) - Pools: Add a facility for calling a custom function during ↵peter1138
pool block clean up.
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-03(svn r4262) -Codechange: use IsClearWaterTile instead of some "home-brewn" ↵celestar
marco. town_cmd is now map access free
2006-04-03(svn r4261) CodeChange : Add and Use Accessor for Houses Construction. And ↵belugas
cleaning on town.flags12 too
2006-04-03(svn r4254) -Codechange: Add and make use of map accessors for town lifts.celestar
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 r4190) -Codechange: Add and make use of an accessor function to create ↵celestar
houses
2006-03-30(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. ↵belugas
Although it was an accessor, nor his usage nor the values were clear.
2006-03-30(svn r4179) -Codechange: Add and make use of an accessor that obtains the ↵celestar
building type
2006-03-29(svn r4154) -Moved MAX_BRIDGES in bridge.h and made it an enum. This makes ↵celestar
two drops ...
2006-03-24(svn r4085) Add GetTown{Index,ByTile}() to get the town index resp. the town ↵tron
from a tile
2006-03-23(svn r4073) Add functions to make and test for (most) unmovable tilestron
2006-03-21(svn r3996) -Fix: Slope and height information returned for some tile types ↵tron
is wrong This leads to graphical glitches when drawing foundations. This doesn't fix all problems, but at least some of them.
2006-03-19(svn r3986) Add [GS]etCrossingRoadOwnertron
2006-03-16(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space ↵Darkvater
reservation in savegames and update where used - Also add this capability to settings
2006-03-12(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add ↵tron
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
2006-03-06(svn r3777) Add some functions to handle tunnelstron
2006-03-06(svn r3773) Shove some semantics down ottd's throat by replacing ints and ↵tron
magic numbers by enums and some related changes
2006-03-05(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-schemetron
2006-02-23(svn r3660) Convert further road bits and type references to the functions/enumstron
2006-02-21(svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often ↵tron
it was just a complicated way of writing GetTileSlope(tile, NULL)
2006-02-20(svn r3627) - Change all hardcoded 255 max-saveload versions with the define ↵Darkvater
SL_MAX_VERSION
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 r3561) Don't use FindLandscapeHeightByTile() when it's overkill. Also ↵tron
use a sprite enum instead of a magic number.
2006-02-02(svn r3520) Remove unused parameters from some functionstron
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2006-01-26(svn r3445) - Fix: [ 1415379 ] Enhance documentation of lift destinationDarkvater
- Fix: wrong documentation of trees (Tron)
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-24(svn r3339) Remove unnecessary includestron
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
2005-11-15(svn r3188) Use CmdFailed() to check, if a command failed, don't compare ↵tron
with CMD_ERROR
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3179) - RandomRange() and RandomTile() instead of home brewed versionstron
- CHANCE*() instead of mumbling strange numbers
2005-11-14(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-11-13(svn r3172) static, consttron
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up