summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
AgeCommit message (Collapse)Author
2006-04-15(svn r4435) - Fix: an assertion triggered when trying to remove a bridge ↵Darkvater
with the remove-tool (r4348 surfaced this). In CmdRemoveRoad tiletype was not checked for ownership. Intorudce IsLevelCrossingTile() which checks if a tile is a crossing without knowing the type. Suggested by peter1138 and Tron.
2006-04-11(svn r4359) MSV6 Release mode now compiles (problem of UINT_MAX. stdafx.h ↵belugas
should be the first include). Thanks to KUDr for solution and testing
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-08(svn r4326) Only reduce the slot age of a vehicle if it has a slot assignedtron
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 r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZEcelestar
2006-03-31(svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and ↵celestar
moved them to station_map.h to keep consistency
2006-03-26(svn r4120) Use the new station functions where appropriatetron
2006-03-24(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the ↵tron
station from a tile
2006-03-16(svn r3909) [multistop]celestar
-Codechange: No longer hijack the VS_STOPPED flag when waiting for a slot. -Fix: Vehicles waiting for slots can still be controlled (sent to depot, orders modified, ...) -Fix: Vehicles no longer stop on crossings and during overtake operations
2006-03-12(svn r3832) Replace some magic numbers by (Diag)Direction enumstron
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-08(svn r3798) Fix typo in r3795tron
2006-03-08(svn r3796) When unmagicfying code, do it Right(tm) and also give the ↵tron
variables sensible names. I flipped a 'b' and a 'd' in r3785
2006-03-08(svn r3795) Add a function to request the orientation of a depottron
2006-03-08(svn r3787) Use DirToDiagDir() instead of >> 1tron
2006-03-08(svn r3786) More work for DirDifftron
2006-03-08(svn r3785) Replace some if-magic to determine the turning direction for ↵tron
road vehicles with the new DirDiff stuff
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-06(svn r3776) Replace many ints and magic numbers by Direction, DiagDirection ↵tron
and friends
2006-03-05(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-schemetron
2006-03-04(svn r3758) Remove the news validation callback. It is superseded by r3757.tron
2006-03-04(svn r3757) -Feature: Delete news items about vehicles, when they get staletron
This is used to delete - all news about a vehicle, when it gets deleted - "vehicle has stopped in depot" news, when it gets started - "vehicle has invalid orders" news, when the orders get changed
2006-03-03(svn r3754) Miscellaneous changes: indentation, reduce variable scope, ↵tron
constness, avoid some more function pointer casts
2006-03-03(svn r3752) FYOS avoid to cast function pointerstron
2006-03-03(svn r3751) -Fix: Correctly implement minimum search, so road vehicles head ↵tron
twoards the closest station, not the last one in the list
2006-03-03(svn r3750) Use INVALID_STATION instead of -1 in NPFtron
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-02-27(svn r3681) - [Multistop] Check the RoadStop type before check its status. ↵peter1138
This fixes an assert introduced in r3663. Also fix the return type of GetRoadStopType().
2006-02-24(svn r3663) - Fix: [Multistop] Check the status of the destination road stop ↵peter1138
instead of a station's first road stop. This only has effect with road vehicle queuing disabled.
2006-02-23(svn r3658) Add functions and symbolic names to retrieve road tile types and ↵tron
road pieces
2006-02-21(svn r3643) Remove a local variable which is just a pointer to a road stop ↵tron
status field and had the sensible name 'b'; instead directly use the road stop status field
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-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-11(svn r3589) - Rename u.road.unk2 to u.road.blocked_ctrpeter1138
2006-02-10(svn r3584) Replace the rather obscure control flow for handling road ↵tron
vehicle orders by something remotly comprehensible
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 r3524) - Split newgrf features from engine.[ch] into ↵peter1138
newgrf_engine.[ch], and add the new files to project files.
2006-02-01(svn r3513) Fix strange typo in last commit ...peter1138
2006-02-01(svn r3512) Yet more whitespace fixes (mostly by Rubidium)peter1138
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-02-01(svn r3510) Fiddle with whitespace and parenthesestron
2006-01-30(svn r3489) Remove an unused declarationtron
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-18(svn r3402) -Fix: [building/cloning] added a string telling if build failed ↵bjarni
due to not being able to build a vehicle. Triggered when cloning a retired design
2006-01-06(svn r3371) -Fix: don't allow road-vehicles to perform an out-of-bound ↵truelight
operation while overtaking in a curve (tnx to guru3, Tron and peter1138) -Codechange: while at that, removed a local variable (more pretty :))
2006-01-05(svn r3367) Unify the 4 distinct ↵tron
CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command. As side effect this is a -Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-30(svn r3358) Remove another piece of unused codetron