summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
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
2007-04-29(svn r9754) -Codechange: make classes for all vehicle types, so we can make ↵rubidium
nicer/better maintainable code, i.e. virtual methods instead of switches.
2007-04-29(svn r9752) -Codechange: remove some duplication related to BeginLoading.rubidium
2007-04-29(svn r9742) -Fix (r9689) [FS#739]: Fix cloning with refit costs again, ↵maedhros
hopefully for good this time.
2007-04-24(svn r9714) -Fix (r8110): Remove invalid assertion triggered by overly long ↵peter1138
trains being reversed while loading.
2007-04-20(svn r9702) -Codechange: Add livery support to newgrf vehicle var 43peter1138
2007-04-20(svn r9692) -Fix (r9683): don't try to remove vehicles from the queue of a ↵rubidium
non-existing station.
2007-04-20(svn r9689) -Fix: Clone vehicles will no longer refit for freebjarni
2007-04-20(svn r9684) -Fix (r9683): Remove vehicles from the station loading list ↵maedhros
instead of adding them again when they leave, and add a v->LeaveStation() call for aircraft.
2007-04-20(svn r9683) -Fix [FS#423]: improved loading does not use a huge amount of ↵rubidium
processing power anymore when having a lot of trains.
2007-04-18(svn r9673) -Cleanup: remove spaces before tabs and replace non-indenting ↵rubidium
tabs with spaces.
2007-04-18(svn r9672) -Cleanup: lots of coding style fixes around operands.rubidium
2007-04-18(svn r9671) -Codechange: Implement NewGRF callback 36, which allows changing ↵peter1138
of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
2007-04-18(svn r9665) -Documentation: Doxygen corrections,errors, corrections of ↵belugas
corrections...
2007-04-12(svn r9609) -Codechange: Move some function prototypes out of functions.h ↵maedhros
and into landscape.h, and add a few where they didn't exist.