summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
AgeCommit message (Collapse)Author
2007-09-17(svn r11122) -Fix [FS#1234]: crash when building a NewGRF vehicle when the ↵rubidium
articulated build vehicle callback returneed a different value for the purchase window than the normal build. Thanks for Dalestan and _minime_ for pointers to possible causes.
2007-09-16(svn r11120) -Codechange: remove the arbitrary limit of 10 articulated parts ↵rubidium
for a vehicle.
2007-09-09(svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the ↵rubidium
goto-depot button did not make it possible to stop the vehicle at that depot.
2007-09-01(svn r11031) -Codechange: reduce the amount of duplication of bit counting ↵rubidium
functions. Based on patches by skidd13, SmatZ and Belugas.
2007-08-31(svn r11017) -Codechange: unify determining whether a vehicle needs/can be ↵rubidium
service a little more.
2007-08-30(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game ↵rubidium
state while being marked const. -Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-26(svn r10983) -Codechange: use vehstatus & VS_CRASHED instead of some other ↵rubidium
"methods" custom to each vehicle to determine whether the vehicle is crashed.
2007-08-24(svn r10974) -Fix [FS#1144, FS#1155]: road vehicles that could not ↵rubidium
(properly) use a road stop still tried to go to that road stop.
2007-08-16(svn r10924) -Fix [FS#1120]: VS_STOPPED is only set for the front part of an ↵maedhros
articulated road vehicle, so don't check any other parts when testing if the vehicle is stopped inside a depot.
2007-08-07(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count ↵bjarni
didn't always update correctly) (Matthias)
2007-08-06(svn r10814) -Fix [FS#1103]/Codechange: allow trams to be reverse manually, ↵rubidium
even though there is no track to do so.
2007-08-06(svn r10812) -Fix (r10097) [FS#1093]: Make RoadVehicle::MarkDirty() mark all ↵maedhros
parts of articulated vehicles as dirty, not just the front.
2007-08-06(svn r10811) -Fix (r10097): Refit all the parts of an articulated road ↵maedhros
vehicle, not just the first part.
2007-08-06(svn r10809) -Fix (r10097): When reversing, articulated parts of road ↵maedhros
vehicles should not attempt to do their own pathfinding.
2007-08-03(svn r10770) -Codechange: use the pool item class as super class for the ↵rubidium
vehicle struct. -Codechange: do not force "special" vehicles to be allocated in the low 1024 vehicle slots and non "special" vehicles in the rest of the slots.
2007-07-29(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word ↵rubidium
"road" everywhere except in the tile type.
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
2007-07-24(svn r10672) -Codechange: typify some parameters/variables.rubidium
2007-07-16(svn r10587) -Codechange: move the string/dparam related stuff from ↵rubidium
variables.h to strings.h
2007-07-09(svn r10493) -Codechange: update some callback ID enums to reflect their ↵rubidium
changed usage, add a few and update the comments.
2007-07-01(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a ↵rubidium
Tick method in the Vehicle class.
2007-07-01(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of ↵rubidium
Get(Aircraft|RoadVeh|Ship|Train)Image.
2007-06-27(svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take ↵peter1138
account of vehicle group (Matthias Wolf)
2007-06-26(svn r10345) -Fix [FS#290]: Make OPF handle coming out of a tunnel as well ↵matthijs
as going into a tunnel, to support road vehicles looking back when finding a depot while in a tunnel. -Fix [FS#290]: Make NPF look back when finding a depot for road vehicles.
2007-06-25(svn r10335) -Fix (r10331): Increment the current order index *after* using ↵maedhros
it in UpdateVehicleTimetable.
2007-06-22(svn r10287) -Fix (r10266): some surprises from that (almost always) ↵rubidium
complaining compiler...
2007-06-22(svn r10266) -Codechange: keep track of the origin, time of travel and ↵rubidium
accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it.
2007-06-20(svn r10236) -Feature: Introduce a form of timetabling for vehicles.maedhros
2007-06-18(svn r10208) -Codechange: replace int32 with Money where appropriate.rubidium
2007-06-18(svn r10205) -Codechange: refactor returning of cost, so it can be more ↵rubidium
easily modified.
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-12(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace ↵maedhros
some less efficient loops.
2007-06-12(svn r10111) -Codechange: Add new vehicle hash table for collision detection ↵peter1138
and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003')
2007-06-11(svn r10097) -Feature: Add support for articulated road vehicles, or ↵maedhros
callbacks 11 and 17 for road vehicles for those who prefer the technical explanation.
2007-06-02(svn r10029) -Fix (r9923): trams should not/cannot turn on roadworks.rubidium
2007-06-01(svn r10012) -Fix (r9999): crash when forcing road vehicles to turnglx
2007-05-31(svn r10003) -Fix (r9999): crash when vehicle had to turn on a bridge. rubidium
2007-05-31(svn r10002) -Fix (r9999): don't try to get the disallowed directions from a ↵rubidium
road depot...
2007-05-31(svn r9999) -Feature: make it possible to disallow busses and lorries to go ↵rubidium
a specific way on straight pieces of road.
2007-05-30(svn r9989) -Fix [FS#817]: trams/road vehicles did go to the closest road ↵rubidium
stop regardless whether they could actually "drive" on there.
2007-05-26(svn r9941) -Fix: trams could be cloned to appear in normal road depots and ↵bjarni
vice versa (spotted by Desolator)
2007-05-25(svn r9927) -Fix: assert triggered when letting a tram run into the wrong ↵rubidium
side of a depot.
2007-05-25(svn r9924) -Fix: update the road vehicle speeds when stopped and/or running ↵rubidium
just behind another vehicle.
2007-05-25(svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0.rubidium
2007-05-25(svn r9919) -Codechange: prepare some more places for more road types.rubidium
2007-05-25(svn r9917) -Codechange: prepare some more areas for more road types. rubidium
2007-05-24(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple ↵rubidium
road types on a single tile.
2007-05-14(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.rubidium