summaryrefslogtreecommitdiff
path: root/train_cmd.c
AgeCommit message (Collapse)Author
2006-09-05(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because ↵Darkvater
it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
2006-09-05(svn r6395) -Fix: when converting a depot from/to elrail, update the power ↵glx
of trains that are in it
2006-09-04(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines ↵rubidium
more uniform. -Cleanup: whitespace alignment of a few tables.
2006-09-04(svn r6378) -Codechange: Rename VLW_FLAGS to VLW_MASK as it is a maskDarkvater
2006-09-04(svn r6376) -Codechange: [vehicle refit] moved all refit cost calculations ↵bjarni
into GetRefitCost() Now it's possible to tell refit costs for an EngineID without actually having build a vehicle
2006-09-03(svn r6356) -Fix: FS#263 planes come out of hangar and drive back into hangarbjarni
Now all vehicles are serviced when it's time for service and they are in a depot This will avoid the goto depot order from ever showing up when in a depot
2006-09-03(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as ↵tron
large as any type of destinataion (StationID, DepotID, WaypointID) it can hold DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
2006-09-02(svn r6352) -Fix: FS#322 Send to depot bugbjarni
now vehicles can't be sent to a depot when they are already inside a depot before they would remember the order and try to turn around when leaving the depot
2006-09-02(svn r6304) -Codechange r6295: Use !! instead of (bool) in commands to send ↵bjarni
vehicles to depots
2006-09-01(svn r6295) -Feature: using goto depot with a different control selection ↵bjarni
will now alter the service/stopping in depot flag instead of cancelling the goto depot order
2006-09-01(svn r6291) -Feature: Vehicle lists from the station window now also got the ↵bjarni
goto depot button -Codechange: unified the code for mass goto depot to avoid duplicated code -Fix: Vehicles already on the way to depots will not be cancelled by mass goto depot (made it really hard to send all vehicles at once)
2006-08-30(svn r6246) -Feature: added the many times requested "send all vehicle to ↵bjarni
depot" button it's located in the vehicle list screen and does the same as in the shared orders window (send all vehicles in list to a depot) it will still not inform the player if a vehicle failed to find a depot, so don't take for granted that all of them go
2006-08-29(svn r6229) -Feature: Shared order lists now got a "goto depot" buttonbjarni
this will try to send all vehicles in the list to depots/hangars currently if one fails to find a depot, it will not tell the player
2006-08-28(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else ↵rubidium
{' -> '} else {', tabs between code and comment, etc.
2006-08-28(svn r6195) -Codechange: do not use '//' in '/* ... */' style comments and ↵rubidium
'/*' or '*/' in '//' style comments.
2006-08-27(svn r6165) -Feature: control click Goto Depot will now make the vehicle servicebjarni
at the depot and leave right away. To tell the difference the status of stopping vehicles will be in red, while servicing vehicles will be green. -Codechange: remove some dead code in CmdSendAircraftToHangar() since it is conflicting with new functionality. Now p2 means the same for all types
2006-08-26(svn r6159) -Fix: FindClosestTrainDepot hardly ever found a depot with NPF ↵Darkvater
off due to absence of distance-normalization (Rojer)
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 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 r6002) -Cleanup: remove the now redundant BASE_YEAR constant.rubidium
2006-08-16(svn r5926) -Codechange: make _cur_year contain the full year, instead of ↵rubidium
the offset since 1920 -Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year
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-08-12(svn r5854) -Fix: [elrails] now electric engines are stopped if they enter a ↵bjarni
non-electrified depot even if they would have left right away if the depot had catenary this solves the issue where electric engines in a certain situation could leave non-electrified depots, turn around and enter all the time
2006-08-12(svn r5853) -Fix: [elrails] FS#178 Electric Trains can leave Conventional Depotbjarni
now the user will get an error if he tries to start the train and the status bar will say "no power" instead of "stopped" Electric trains already driving in and out of non-electrified depots will still do so, but you can't start new ones
2006-08-09(svn r5822) - NewGRF: add support for callback 31, vehicle start/stop check. ↵peter1138
This allows a set to disallow a vehicle from being started, i.e. to not be able to leave the depot. This is almost a partner to callback 1D.
2006-08-09(svn r5819) - NewGRF: add support for refit costs specified in NewGRF. This ↵peter1138
may affect the default refit costs for the default rail vehicles.
2006-07-30(svn r5665) - Codechange: check pointers against NULL, coding style, ↵Darkvater
tabulation; nothing serious.
2006-07-30(svn r5664) -Fix: [SF 1518090 ] moving train engines in depot - crash (svn ↵bjarni
r5463) this was present long before 5463 Darkvater deserves some of the credit for this fix since he discovered where the first pointer got set incorrectly
2006-07-27(svn r5624) Use {IsPlainRailTile,IsRailDepot,IsRailWaypoint,HasSignals}() ↵tron
instead of GetRailTile{T,Subt}ype() - this is more concise and a bit more flexible if/when the rail tile encoding changes
2006-06-29(svn r5427) - Codechange: testing for "== true" is redundant.peter1138
2006-06-12(svn r5240) - NewGRF: when there is more than one engine in a consist, base ↵peter1138
livery overrides and powered wagon weight/power on the last engine before the wagon.
2006-06-09(svn r5187) - NewGRF: temporarily change a vehicle's cargo subtype when ↵peter1138
calling the refit capacity callback.
2006-06-08(svn r5176) fixing the typo, that should have been fixed in last commitbjarni
2006-06-08(svn r5175) -Fix: [autoreplace] FS#186 autoreplaced trains can leave all ↵bjarni
wagons in depot also fixed a serious typo in peter1138's comments
2006-06-07(svn r5155) - Remove the bridge branch merge (revision r5070)tron
2006-06-04(svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. ↵peter1138
This simplifies code that works with more than one vehicle type.
2006-06-04(svn r5104) - When refitting a vehicle to its existing cargo type, don't ↵peter1138
lose the cargo onboard (useful when adding wagons to a train)
2006-06-04(svn r5103) - Add cargo subtype parameter to refit commands (mart3p)peter1138
2006-06-04(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. ↵tron
_new_vehicle_id is enough.
2006-06-04(svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 ↵KUDr
for frequent debug messages (performance stats)
2006-06-02(svn r5071) - Fix (FS#184): "Erroneous train reversal on waypoints". When ↵peter1138
processing the next train order, do not even consider reversing the train if the last order was to a waypoint.
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-06-01(svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138)celestar
2006-06-01(svn r5063) -Codechange: Add a function to determine the length of a ↵celestar
platform (request by KUDr)
2006-05-31(svn r5061) - NewGRF: always use visual effect callback if it is defined, ↵peter1138
not just for powered wagons.
2006-05-27(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous ↵KUDr
support and users for testing.
2006-05-19(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual ↵peter1138
variations
2006-05-13(svn r4860) - NewGRF: remove a missed extern for _traininfo_vehicle_pitchpeter1138