summaryrefslogtreecommitdiff
path: root/waypoint.c
AgeCommit message (Collapse)Author
2006-05-09(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and ↵rubidium
RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
2006-05-06(svn r4755) - Newstations: add a gui station tile drawing routine and use it ↵peter1138
in place of the existing one for waypoints.
2006-05-04(svn r4739) - Newstations: remove cargo type parameter of ↵peter1138
GetCustomStationRelocation() as we can determine it internally
2006-05-03(svn r4723) - Newstations: add TileIndex parameter to station resolver.peter1138
2006-04-27(svn r4593) CodeChange : Renamed spec (when using StationSpec) to statspec.belugas
This is following the same scheme as for IndustrySpec
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-18(svn r4464) -Codechange: Oops, forgot one file in last commitcelestar
2006-04-17(svn r4460) - Newstations: remove unused class_id / stat_id variables from the peter1138
Station struct.
2006-04-12(svn r4383) - Codechange: Remove extraneous code from 4354; no need to get ↵peter1138
RailTypeInfo when we already have it...
2006-04-11(svn r4354) [Elrail][NewGRF] Codechange: Drawing of custom waypoints with ↵peter1138
custom ground sprites used the index of the rail type as an offset. With the introduction of elrails this offset is incorrect, so instead there is now a lookup table within the RailTypeInfo struct to explicitly list the offset.
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-05(svn r4280) -Codechange: Add and make use of map accessors concerning ↵celestar
railway waypoints
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-03-26(svn r4133) - Some miscellaneous changes (unconverted TownID in function ↵Darkvater
definition, Owner instead of byte, remove obsolete member and compare waypoint index with 0 not STR_NULL)
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-17(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()tron
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-01(svn r3697) Rename DIAG1/DIAG2 to X resp. Y as this conveys a bit better in ↵tron
which direction a pieces of rail goes
2006-03-01(svn r3696) Add functions to turn a tile into a normal rail ↵tron
tile/depot/waypoint. This is just a tiny step, the rail code needs way more love and caring
2006-02-20(svn r3627) - Change all hardcoded 255 max-saveload versions with the define ↵Darkvater
SL_MAX_VERSION
2006-01-29(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it ↵Darkvater
in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron) - The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-14(svn r3297) Staticisetron
2005-11-16(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. ↵peter1138
This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct. - Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.
2005-11-16(svn r3210) -Codechange: use IsRailWaypoint where possible (instead of ↵truelight
magicnumbers) -Codechange: IsRailWaypoint should take 'tile', not 'm5'
2005-11-12(svn r3167) - NewGRF: Start moving custom station code to separate files.peter1138
Rewrite handling of station classes. Allow for more than 8 station tile layouts. Start of code to unload custom stations.
2005-11-11(svn r3166) Constify read-only accesses of custom stationspeter1138
2005-11-05(svn r3140) Building/removing a waypoint could leave old PBS reservations ↵peter1138
behind. This ensures they are cleared.
2005-10-21(svn r3075) -PBS: Keep track reservation state while building and removing a ↵peter1138
waypoint.
2005-10-16(svn r3049) Replace byte/int/uint by RailType where appropriatetron
2005-08-01(svn r2781) Fix some of the issues with variables in .h files.ludde
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-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-08(svn r2535) Tabstron
2005-06-25(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to ↵tron
TileVirtXY
2005-06-24(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"tron
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-30(svn r2387) - CodeChange: made the saveload code more readable and also ↵Darkvater
removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-15(svn r2324) Introduce _cmd_text for passing strings with a command instead ↵tron
of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-09(svn r2287) - Fix (regression): cast stationcount to unsigned instead of p1 ↵Darkvater
to signed when checking valid waypoint types. Thanks for pointing it out Tron
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-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)