summaryrefslogtreecommitdiff
path: root/station_cmd.c
AgeCommit message (Collapse)Author
2006-04-08(svn r4319) -Codechange: Station map accessorscelestar
2006-04-07(svn r4316) -Codechange: finished r4257 (forgot one variable there)celestar
2006-04-03(svn r4265) - Fix: compile warning on VS2005 (parameter 2 different from ↵Darkvater
declaration)
2006-04-03(svn r4259) -[multistop] Fix/Feature/Codechange:celestar
1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles. 2) Removed the "wait for stop" feature, because it did not work in practise. 3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet) 4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops. 5) Hopefully the last fundamental change to multistop
2006-04-03(svn r4257) -Codechange: Renamed the airport_map5_tiles_* variables into ↵celestar
airport_sections_*
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-30(svn r4173) -Codechange: Use IsClearWaterTile for buoy constructioncelestar
2006-03-29(svn r4157) CodeChange : Keep on cleaning up Celestar's elrail mergebelugas
2006-03-29(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of ↵celestar
code and proofreading, thanks to peter1138 for another lot of code and ideas.
2006-03-26(svn r4128) - CodeChange: Add proper semantics for CargoID for such ↵Darkvater
variables instead of using the general byte-type.
2006-03-26(svn r4113) Moved all relevant map functions for stations to station_map.[ch]celestar
Some work with animated tiles remains. Thanks to Tron for parts of the code and lots of proof-reading and suggesting
2006-03-26(svn r4111) Fix/Remove some stale commentstron
2006-03-24(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the ↵tron
station from a tile
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-18(svn r3939) -Fix: No longer assume that the number of slots is 2. It was not ↵celestar
a problem up to now, but it's not The Right Thing (TM) to do either
2006-03-17(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()tron
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 r3829) Reduce the use of _error_message by directly returning error ↵tron
codes instead of using this global variable
2006-03-08(svn r3787) Use DirToDiagDir() instead of >> 1tron
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-02(svn r3730) Multistop modifications:celestar
-Codechange: Completely rewritten the slot assignment system. It now consumes less CPU cycles and memory -Codechange: Increased maximum number of roadstops to 16. -Fix: Several conditions where a slot becomes unliked from a vehicle -Codechange: ClearSlot now only takes one parameter, the vehicle -Feature: Console command 'clearslots' to clear ALL currently assinged slots. debug usage only -Feature: vehicles that cannot get a slot now wait on the road instead of planlessly blocking stops or circling around -Codechange: Adjusted debug levels TODO: Make the slot finder compatible with (a) pathfinder(s).
2006-03-01(svn r3714) Add functions to turn tiles into water and shore tilestron
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-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-18(svn r3613) Some more const, indentation, whitespace and similar stufftron
2006-02-18(svn r3612) - RoadStop->slot[] stores a vehicle index. Adjust its type and ↵peter1138
use INVALID_VEHICLE instead of nonsense INVALID_SLOT.
2006-02-09(svn r3582) Restructure MoveGoodsToStation() to avoid double bookkeeping of ↵tron
StationIDs and station pointers
2006-02-09(svn r3581) Just noticed the indentation was totally off, fix ittron
2006-02-09(svn r3580) Some small cleanups before the real change, especially reduce ↵tron
the indentation by one by using continue
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-03(svn r3530) - NewGRF: Move station resolver to newgrf_stationpeter1138
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
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-06(svn r3372) - Fix: update signal states when building or removing rail ↵peter1138
station blocks
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-29(svn r3353) Simplify the automatic length adjustment algorithm for replacing ↵tron
trains: Use the length of the train before the replacement as reference length
2005-12-25(svn r3341) -Codechange: make mingw32 happy, and renamed Rectangle, because ↵truelight
it already exists on that platform
2005-12-18(svn r3313) Remove GPMI related changes from trunktron
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
2005-12-14(svn r3305) -Rename: Changed all instances of ottd_ related to the AI to ttai_truelight
2005-12-14(svn r3297) Staticisetron
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
2005-11-23(svn r3232) -Add: implemented the event-system for AIstruelight
-Add: added several hooks (event-callbacks) for road-related-stuff
2005-11-22(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed ↵truelight
'major' version to just: version.
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
2005-11-17(svn r3213) - Codechange: Clean up handling of road stops, avoiding ↵peter1138
unnecessary use of pointers and using the *BIT() macros.
2005-11-16(svn r3202) If cascade -> switchtron
2005-11-15(svn r3185) consttron