summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2007-06-22(svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning ↵truelight
vehicle is loading, down meaning vehicle is unloading
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 r10254) -Feature: loading indicator, which shows in % how full a ↵truelight
vehicle is while loading/unloading (TheJosh)
2007-06-20(svn r10236) -Feature: Introduce a form of timetabling for vehicles.maedhros
2007-06-18(svn r10210) -Codechange: make all money related variables 64 bits, so ↵rubidium
overflowing them should become a little harder.
2007-06-18(svn r10205) -Codechange: refactor returning of cost, so it can be more ↵rubidium
easily modified.
2007-06-18(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).rubidium
2007-06-18(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.rubidium
2007-06-13(svn r10154) -Fix [FS#870]: some vehicles were not drawn when having a high ↵rubidium
resolution and a high zoom-out level. Patch by B. N. SmatZ!.
2007-06-13(svn r10153) -Fix [FS#869]: vehicles disappear when crossing certain tiles. ↵rubidium
Fix by B. N. SmatZ!.
2007-06-13(svn r10129) -Fix (r10111): Test for x == INVALID_COORD instead of v->tile ↵peter1138
== INVALID_TILE to determine if a vehicle should be removed from the has.
2007-06-13(svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when ↵glx
the position hash were
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-09(svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crashbjarni
The problem was that if adding units to the clone (wagon by wagon) failed, then cloning wouldn't notice it and it made two half trains Now it detects this case and it will make cloning fail. The string with the explanation for the failed move will be used in the error message so the user will know why it failed.
2007-06-08(svn r10062) -Codechange: Don't redraw all station tiles when cargo is added ↵peter1138
or removed if the station has no custom graphics.
2007-06-07(svn r10056) -Revert (r10049): removing SLE_WRITEBYTE didn't work as ↵rubidium
expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy.
2007-06-06(svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation.rubidium
2007-06-06(svn r10048) -Fix (r6455): Don't use override engine type for articulated ↵peter1138
wagon parts.
2007-06-02(svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that ↵maedhros
isn't a train.
2007-06-01(svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace ↵maedhros
individual checks depending on the vehicle type.
2007-05-27(svn r9959) -Fix: Only call GetNextVehicle for trains.maedhros
2007-05-27(svn r9956) -Codechange: Add tram livery schemespeter1138
2007-05-27(svn r9953) -Fix: Only check whether trains are multiheaded when cloning.maedhros
2007-05-26(svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains.maedhros
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-21(svn r9896) -Fix (r9874): when selling an entire train, decrease the number ↵glx
of vehicles in the group only once
2007-05-20(svn r9889) -Codechange: Use cargo's freight status for choosing livery scheme.peter1138
2007-05-19(svn r9878) -Fix (9874): some vehicle count's were not properly updated on ↵rubidium
delete or autoreplace of vehicles.
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-18(svn r9872) -Codechange: more type strictness for vehicle typesrubidium
2007-05-18(svn r9869) -Codechange: replace some bytes with VehicleType, i.e. more type ↵rubidium
strictness.
2007-05-15(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the ↵truelight
obvious reasons -Codechange: introduced ZOOM_LVL_DETAIL to show/remove details -Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out) -Fix r9845: missed some int -> ZoomLevel
2007-05-15(svn r9841) -Codechange: add a little more type strictness to the vehicle types.rubidium
2007-05-14(svn r9836) -Codechange: make non-improved loading happen FIFO-ish; ↵rubidium
generally loading/unloading will happen fifo, but there are no guarantees on the FIFO-ness. For (better) FIFO guarantees you still need to use improved loading.
2007-05-13(svn r9831) -Codechange: more refactoring of the loading/unloading.rubidium
2007-05-07(svn r9808) -Codechange: unify the Handle<VehicleType>Loading functions.rubidium
2007-05-06(svn r9799) -Codechange: separate engine class and engine running cost class ↵rubidium
(mart3p).
2007-05-06(svn r9795) -Codechange: enumify the EngineClass.rubidium
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-05(svn r9789) -Fix (r9770): vehicles didn't get unloaded when 'full load' was ↵rubidium
specified and the vehicle was already full when it entered.
2007-05-04(svn r9784) -Codechange: remove unused variable.rubidium
2007-05-03(svn r9773) -Fix r9772: MSVC warningglx
2007-05-03(svn r9772) -Fix [r9770,FS#761]: under some circumstances loading/unloading ↵rubidium
didn't work (correctly).
2007-05-02(svn r9770) -Codechange: perform the payment of cargo when ↵rubidium
loading/unloading, but when arriving at the station.
2007-05-02(svn r9764) -Codechange: replace some lookup tables by functions.rubidium
2007-05-01(svn r9763) -Codechange/Fix (r9760): don't read the variables that are ↵rubidium
calculated automatically either.
2007-05-01(svn r9760) -Codechange: remove the need for saving some vehicle variables.rubidium
2007-04-29(svn r9755) -Codechange: refactor some more of the begin loading stuff.rubidium