summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
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.
2007-04-10(svn r9581) -Revert (r9562): This broke as much as it fixed, so revert until ↵maedhros
a proper way of paying for refits when cloning can be found.
2007-04-04(svn r9562) -Fix: When cloning, pay for the refit costs as well.maedhros
2007-04-04(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. ↵belugas
Almost done. Yeah. I know, I've already said that...
2007-03-21(svn r9388) -Codechange: variable scope and type, and standardify all ↵peter1138
CargoID loops.
2007-03-18(svn r9303) -Codechange: Use cargo class when counting passengers in a road ↵peter1138
vehicle crash, and when loading aircraft.
2007-03-18(svn r9302) -Codechange: Use cargo class to test for passengers when ↵peter1138
deciding on the livery scheme to use.
2007-03-08(svn r9073) -Codechange: moved autoreplace to a file of it's own (now ↵bjarni
autoreplace has a cmd and a gui file)
2007-03-08(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the ↵rubidium
coding style (and rest of the code).
2007-03-07(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};rubidium
2007-03-07(svn r9050) -Codechange: Foo(void) -> Foo()rubidium
2007-03-02(svn r8978) -Feature: Rewrite of transfer system.richk
This major feature-fix keeps track of the value of transfers offloaded at a station, and hands on to a loading vehicle a credit note proportionate to the cargo loaded. The transferring vehicle is paid only for the distance it has travelled. eg. B-C in a transfer chain A-B-C-D. When the final cargo is delivered, these credit notes are cashed, and the final vehicle is paid for A-D minus any credit notes it is carrying. The company bank balance increases by the value of the A-D route. You still need to set up a profitable route; it is still easy to make a loss on transfers by bad planning. :)
2007-02-28(svn r8945) -Codechange: Rename v->load_status to v->vehicle_flags so it can ↵maedhros
be used for more than just the gradual loading status.
2007-02-25(svn r8897) -Fixtron
Change the signature of GetNewVehiclePos(): -void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp); +GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
2007-02-25(svn r8896) -Fixtron
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult. Therefore remove the return value.
2007-02-24(svn r8891) -Codechange: Remove remains of global cargo scheme. All cargo ↵peter1138
mapping is now dealt with only in NewGRF code, on load where possible.
2007-02-22(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping ↵peter1138
tables with dynamically generated data. Change associated code to use new functions.
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-17(svn r8777) -Fix: FS#596 Cloning Maglev in UKRS forgets Mail refitbjarni
Cloning were unaware that articulated locomotives could refit without refitting the front unit
2007-02-15(svn r8744) -Fix(r654/2105): Call GetFirstVehicleInChain only for trains, ↵celestar
and assert the vehicle type in that function. Not a critical error, but it does increase game performance by up to 10% when playing a large game (many vehicles) with aircraft/road vehicle newgrfs loaded.