summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
AgeCommit message (Collapse)Author
2007-08-07(svn r10823) -Fix r8610 [FS#1097]: the autoreplace window vehicle count ↵bjarni
didn't always update correctly) (Matthias)
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-30(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for ↵peter1138
collision detection on bridges/tunnels.
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
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-08(svn r10474) -Fix [FS#995]: wrong group count after train crash.rubidium
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-28(svn r10381) -Fix [FS#951]: skipping an order made train reverse ↵rubidium
immediatelly. Patch by boekabart.
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 r10344) -Fix (r10317): confusion between TRACK_n and TRACK_BIT_n ↵peter1138
stopped NW/SE slopes being picked up, and compare middle of tile against current z, not previous.
2007-06-25(svn r10335) -Fix (r10331): Increment the current order index *after* using ↵maedhros
it in UpdateVehicleTimetable.
2007-06-25(svn r10317) -Fix [FS#786]: acceleration not calculated properly when a ↵rubidium
train goes up a hill between tunnels.
2007-06-22(svn r10288) -Fix [FS#202]: also age engines that aren't front-engines ↵truelight
(based on a patch by kaan)
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-21(svn r10258) -Codechange: as we are now using int64 all over the place, it's ↵rubidium
better to use int64 variables in the string generating too instead of packing them into two int32s. -Fix: some displays of money were wrong.
2007-06-21(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to ↵rubidium
place money in some string.
2007-06-21(svn r10246) -Fix (r10297): some forgotten money conversions and truncation ↵rubidium
issues. Thanks to benc for providing the patch.
2007-06-20(svn r10236) -Feature: Introduce a form of timetabling for vehicles.maedhros
2007-06-19(svn r10222) -Fix [FS#892]: Only 2 trains could crash at one time as ↵peter1138
collision checking stopped on the first hit. This could cause desyncs in network games as the collision hash order is not guaranteed. (patch by B. N. Smatz)
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-17(svn r10177) -Fix: Passengers has one A and two Es (ln)peter1138
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 r10028) -Fix (r2270/r2951): When deleting the first engine of a train ↵peter1138
with multiple engines, only reopen the train window if the player had the original train window open. This fixes 'random' windows opening for multiple players of the same company.
2007-06-02(svn r10026) -Fix: unlinking a rail vehicle didn't clear the first pointerbjarni
After r9973, this could cause some asserts as some vehicles could end up with first pointers to chains they didn't belong to
2007-06-02(svn r10023) -Fix (r3218): When selling trains, if there were no wagons ↵maedhros
between multiheaded engines the rear part could be checked despite having already been deleted, triggering an assert.
2007-06-02(svn r10022) -Fix (r10007): Set the type of multiheaded trains before the ↵maedhros
subtype.
2007-06-01(svn r10008) -Codechange: Move a couple of functions related to articulated ↵maedhros
vehicles to a file of their own.
2007-06-01(svn r10007) -Codechange: Add some asserts to IsFrontEngine and friends to ↵maedhros
ensure that only trains use them.
2007-05-30(svn r9987) -Fix [FS#818]: a train under a bridge could collide with a train ↵rubidium
on the bridge.
2007-05-29(svn r9973) -Cleanup: removed some code that kept both ends of a dualheaded ↵bjarni
engine in the same train (when moving wagons in a depot) NormaliseTrainConsist() is called later in the same command and it will take care of this issue
2007-05-28(svn r9967) -Fix (r9938): autoreplace would in certain conditions move ↵bjarni
dualheaded engines in a train (usually to the rear) -Change: moving an engine in between the two ends of a dualheaded engine will now move the rear dualheaded engine to the front of the newly added engine (instead of moving the new engine to the rear of the rear dualheaded engine) This can make a difference if there are wagons in the train
2007-05-24(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple ↵rubidium
road types on a single tile.
2007-05-19(svn r9875) -Fix (r9828): Only set carriage capacity if the wagon has not ↵peter1138
been refitted.
2007-05-19(svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you ↵rubidium
can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13.
2007-05-12(svn r9828) -Codechange: [NewGRF] Add support for changing cargo capacity ↵peter1138
with callback 36. This is set on construction for ships and roadvehicles, and whenever carriages are attached for trains.
2007-05-10(svn r9818) -Codechange: Cache wagon override sprite set whenever consist is ↵peter1138
changed, instead of 'recalculating' it every time it is used or just tested.
2007-05-07(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.rubidium
2007-05-07(svn r9807) -Codechange: unify playing of sound when vehicle has been loaded ↵rubidium
and leaves the station.
2007-05-07(svn r9806) -Codechange: [NewGRF] Add callback 36 support for purchase cost, ↵peter1138
for all vehicle types.
2007-05-06(svn r9802) -Fix: a vehicle without visual effects isn't per definition ↵rubidium
unpowered (mart3p).
2007-05-06(svn r9801) -Fix: do not assume that trains running on monorail/maglev ↵rubidium
cannot smoke/spark (mart3p).
2007-05-06(svn r9800) -Codechange: play sound effects based on the engine class, not ↵rubidium
the rail type (mart3p).
2007-05-06(svn r9794) -Codechange: refactor the question whether a vehicle can be ↵rubidium
loaded into LoadUnloadVehicle instead of duplicating it for each vehicle.
2007-05-04(svn r9784) -Codechange: remove unused variable.rubidium