summaryrefslogtreecommitdiff
path: root/tunnelbridge_cmd.c
AgeCommit message (Collapse)Author
2005-11-16(svn r3205) Some more uses for GB/SBtron
2005-11-15(svn r3186) Unnecessary casts and truncationtron
2005-11-15(svn r3184) GB/SBtron
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 r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-10-19(svn r3066) Constify the parameter of GetSlopeZ_*()tron
2005-10-19(svn r3065) -Codechange/Add: Modified the bridge drawing code so that the ↵celestar
basic offset is read from the RailTypeInfo struct. This is (hopefully) the last DrawTile change on the way to electrified railways. While being at it, de-mystified the function a bit and added some asserts.
2005-10-19(svn r3064) Replace some numbers by sprite namestron
2005-10-15(svn r3046) Replace some numbers with sprite names and fix a typo in the ↵tron
sprite list
2005-10-13(svn r3037) Don't deduce the sprites for tunnels and level crossings from ↵tron
magic numbers, but fetch them from the central rail info array. This is a preparation step for electrified rails
2005-10-10(svn r3028) s/255/OWNER_SPECTATOR/tron
2005-10-05(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SBtron
2005-10-01(svn r3004) -Feature, NewGRF: Support loading of bridge attributes and ↵peter1138
tables from GRF. Currently drawing tall pillars uses old data.
2005-09-18(svn r2962) - const correctness for all Get* functions and most Draw* ↵Darkvater
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
2005-09-13(svn r2948) -Fix: the old AI needs a special flag that triggers all kind of ↵truelight
special abilities you really don't want to know about (free bridges, etc..) I removed this flag some revisions ago, but the Aircraft part depends on it, so I re-enabled it again..
2005-08-08(svn r2840) Remove 3 unnecessary strings (they're empty) and fix the ↵tron
alignment of the musick track display
2005-08-06(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to ↵bjarni
serverside -This means that one company can only have one setting for renew and replacing more clients will not fight due to different settings anymore -This is a needed step in the line to fix autoreplacing dualheaded locomotives NOTE: savegame revision bump (peter1138 + me in coop)
2005-08-01(svn r2782) -Codechange: Started cleaning the bridge code. Removed numerous ↵celestar
global variables containing bridge information and joined them in a struct. Introduced GetBridgeType and GetBridgePiece and fixed some minor stuff (whitespace etc)
2005-08-01(svn r2781) Fix some of the issues with variables in .h files.ludde
2005-08-01(svn r2780) Remove some more unused strings and make the use of a few ↵tron
strings more explicit
2005-07-31(svn r2774) -Codechange: Removed TRACKTYPE_SPRITE_PITCH globally and ↵celestar
replaced it by a member of RailtypeInfo
2005-07-24(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic ↵celestar
numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-21(svn r2669) Shuffle some more stuff around to reduce dependenciestron
2005-07-21(svn r2660) Get rid of some more shifting/anding/castingtron
2005-07-20(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented spritecelestar
2005-07-20(svn r2650) Convert many explicit shifts+ands to extract bits to invocations ↵tron
of GB - should be a bit nicer to read
2005-07-19(svn r2643) Get rid of some unnecessary caststron
2005-07-16(svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is ↵celestar
steep (i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance
2005-07-13(svn r2558) Change the internal map format from 7 arrays to one array of ↵tron
structs, this doesn't change the saved format for now. It's a stepping stone for further changes.
2005-07-04(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows ↵hackykid
multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal. - Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
2005-06-25(svn r2487) Replace TILE_XY by TileXY/TileDiffXYtron
2005-06-24(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"tron
2005-06-09(svn r2436) - Fix: Deleting canals under bridges removes bridges first in ↵Darkvater
certain configurations (peter1138)
2005-06-04(svn r2408) Introduce SetTileOwner() and use ittron
2005-06-04(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix ↵tron
some bogus reads of _map_owner
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-06-01(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0hackykid
2005-05-09(svn r2288) - CodeChange: protected the next batch of commands (41 so far, ↵Darkvater
out of 115). - CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking. - CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count) - CodeChange: added IsTownIndex() in following of IsStationIndex(), etc. - Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now)
2005-05-09(svn r2286) - CodeChange: paramcheck the next batch of commands.Darkvater
- Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels
2005-05-09(svn r2285) - Codechange: Fix up some of the missing things from ↵Darkvater
server-checking; namely bridge-type, bridge-length, dragged end-tile (bridge/station), station_spread - Fix: [ 1197256 ] max station spread patch < 7 does not work. Station spread was not taking into account when not using drag&drop. Fix this up, and add a callback to the settings window to immediately reflect the changes.
2005-05-07(svn r2279) - Fix: Check the parameters of the first 10 Commands. While ↵Darkvater
there also add proper comments for the functions and fix up CmdFailed()
2005-03-27(svn r2091) Small cleanup: uint -> TileIndex, const, don't call ↵tron
FindLandscapeHeightByTile()
2005-03-27(svn r2089) - Codechange: Simplify slopes check in CmdBuildBridge(). ↵pasky
Inspired by st3wis' patch 1144746.
2005-03-25(svn r2066) - Fix: [ 1164248 ] game crash while AI builds bridge. Also ↵Darkvater
protect bridge building against invalid bridges and some safeguards when drawing.
2005-03-24(svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.htruelight
-Codechange: rewrote some functions while moving waypoint-stuff -Add: added support for 64k waypoints -Fix: made the waypoint struct a bit more logic (no bit-fucking)
2005-03-06(svn r1934) Small cleanup (uint -> TileIndex, (uint)-1 -> INVALID_TILE and ↵tron
similar stuff)
2005-03-04(svn r1923) - Fix: [ 1155696 ] Crash with german umlauts in station names. ↵Darkvater
The width was not calculated using unsigned values, so all characters above 128 were "negative" - Codechange: a more proper check for a null pointer in tunnelbridge_cmd.c should have gone in with the previous commit
2005-02-13(svn r1867) Include tables/sprites.h only in files which need ittron