summaryrefslogtreecommitdiff
path: root/waypoint.c
AgeCommit message (Collapse)Author
2006-08-26(svn r6148) -Fix r6146: mostly it is useful to declare a variable in the ↵truelight
function you use it (tnx Tron)
2006-08-26(svn r6146) -Fix: MSVC doesn't know how to cast to an union.. so fix it via ↵truelight
an indirect (and btw the old) way
2006-08-26(svn r6143) -Codechange: DeleteWaypoint removes a waypoint from the pooltruelight
-Codechange: DestroyWaypoint is called by DeleteWaypoint to remove all things where a waypoint depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon.
2006-08-26(svn r6142) -Codechange: added WaypointID (sorry DV, couldn't splits it anymore)truelight
-Codechange: introduced DestinationID, which is in fact an union of several types Used in Order struct, so no longer StationID is abused for all targets. Hangars are a big exception, as they use a station-id with GOTO_DEPOT (go figure)
2006-08-22(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXIDtruelight
-Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range Both changes again in preperation of the new mem-pool system, which requires this. IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system
2006-08-22(svn r6052) -Codechange: change OrderType (order->type) in a typedeftruelight
-Codechange: renamed DeleteDestinationFromVehicleOrder to RemoveOrderFromAllVehicles to reflect his function better -Codechange: changed the params of RemoveOrderFromAllVehicles, to avoid unneeded variable-creation
2006-08-22(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips ↵truelight
invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS#13 by blathijs, partly implemented.
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-20(svn r5999) -Feature: change the original date format to a 32 bits format ↵rubidium
based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
2006-08-14(svn r5887) -Cleanup: move date related functions, defines and variables to ↵rubidium
date.[ch] -Cleanup: fix whitespace related coding style issues in date.[ch] -Cleanup: make original comments doxygen compatible and remove/change outdated comments
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-21(svn r5326) Remove the indicator bit for custom waypoint graphics, because ↵tron
it just contains redundant information Yup-yup-ed by: peter1138
2006-06-21(svn r5325) Don't test something if we already know the result true, because ↵tron
the same test was performed just a few lines before
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-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-27(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous ↵KUDr
support and users for testing.
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