summaryrefslogtreecommitdiff
path: root/src/vehicle_base.h
AgeCommit message (Collapse)Author
2009-05-09(svn r16261) -Fix (r16260): Replace a space with a newline and a tab. ↵frosch
(thanks smatz)
2009-05-09(svn r16260) -Codechange: Add Vehicle::IncrementOrderIndex() to deduplicate ↵frosch
some code.
2009-03-11(svn r15672) -Codechange: (left,right,top,bottom)_coord -> ↵rubidium
coord.(left,right,top,bottom), i.e. use Rect.
2009-03-04(svn r15617) -Change [FS#2694]: vehicle variables 40-43 weren't cached ↵rubidium
(though spec stated they are). Caching these variables can yield a 10+% speed increase when those vehicle variables are queried often.
2009-02-09(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.rubidium
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-02-05(svn r15354) -Fix (r14803): first shared of a vehicle could be NULL making ↵rubidium
it impossible to (share-)clone the vehicle.
2009-02-01(svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions.frosch
2009-01-23(svn r15216) -Feature: native support for Transport Tycoon (Original) ↵smatz
savegames. Based on SVXConverter's source code and documentation by Roman Vetter
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-04(svn r14828) -Codechange: move most of save/load-specific code to separate filessmatz
2009-01-03(svn r14803) -Codechange: move order list management into it's own class and ↵rubidium
remove the order count from the savegame as we can easily count that (PhilSophus)
2009-01-03(svn r14801) -Codechange: don't reference Vehicle::num_orders directly but ↵rubidium
through a method GetNumOrders() (PhilSophus)
2008-12-26(svn r14753) -Fix (r1): after buying a company, one could have more vehicles ↵smatz
with the same UnitID
2008-12-26(svn r14745) -Codechange: move "depot_list" and "leave_depot_immediately" ↵rubidium
out of the vehicle struct (saving up to 16 bytes per vehicle) as it is only used to tell a calling function entered a depot (for autoreplace).
2008-12-20(svn r14702) -Documentation: Add a note about the meaning and validity of ↵frosch
Vehicle::dest_tile.
2008-11-18(svn r14592) -Feature [FS#1124]: non-destructive autofill with option to ↵rubidium
keep waiting times (PhilSophus)
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-30(svn r14421) -Codechange: rename all player variables/types to company *or* ↵rubidium
client so it is immediatelly clear which one you are working with.
2008-09-25(svn r14398) -Cleanup (r14395): unused function sneaked insmatz
2008-09-24(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is ↵smatz
deleted/modified while the timetable window is open -Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
2008-08-17(svn r14096) -Codechange: merge the shared order's vehicle list management ↵rubidium
to a single location.
2008-08-16(svn r14085) -Cleanup (r14083): Remove no longer used functions.frosch
2008-08-16(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the ↵frosch
autoreplace kernel.
2008-08-02(svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when ↵rubidium
waiting on a path reservation. (michi_cc)
2008-07-08(svn r13681) -Revert (r13678, r13677): the fixes didn't work in all cases ↵rubidium
(assertions on savegame loads). -Fix [FS#2102]: but now in a hopefully beter way.
2008-07-06(svn r13678) -Fix (r13677): electric trains from pre elrail savegames would ↵rubidium
get stopped on load.
2008-05-21(svn r13205) -Codechange: Remove unnecessary code-style-buggering-up macro.peter1138
2008-05-07(svn r12986) -Codechange: move the landscape and transport related types ↵rubidium
from openttd.h to their own headers.
2008-05-04(svn r12940) -Fix [FS#1974](r12913): [autoreplace] a vehicle backup should ↵bjarni
include the cargo packets in the vehicle as well
2008-04-27(svn r12913) -Add: ability to backup and restore a player's economic data ↵bjarni
and data for a vehicle (or chain of vehicles) Autoreplace uses this with the following benefits: -Mass autoreplace (the button in the depot window) will now estimate costs correctly -Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains) Thanks to Ammler for testing this
2008-04-24(svn r12862) -Codechange: reduce code duplication for VehicleType -> ↵smatz
WindowClass lookup
2008-04-21(svn r12824) -Codechange: Standardise routines for drawing vehicle images, ↵peter1138
using correct types and less duplication.
2008-04-21(svn r12814) -Codechange: reshuffle some variables in the Vehicle struct ↵rubidium
saving 20 bytes with a 32 bit compiler and 32 bytes on 64 bit compiler per vehicle.
2008-04-20(svn r12804) -Codechange: move the effect vehicle handling out of vehicle.cpprubidium
2008-04-20(svn r12803) -Cleanup: rename SpecialVehicle to EffectVehicle to have a ↵rubidium
uniform naming of the thing instead of using both names for the same thing.
2008-04-14(svn r12711) -Codechange: remove unneeded loopsglx
2008-04-11(svn r12658) -Codechange: unify a vast portion of the ↵rubidium
CmdSend<VehicleType>ToDepot commands.
2008-04-11(svn r12657) -Codechange: add 'FindClosestDepot' to the vehicle class.rubidium
2008-04-08(svn r12629) -Codechange: Split VehicleNeedsService() into ↵frosch
Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing(). -Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
2008-04-05(svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and ↵rubidium
road vehicles.
2008-04-01(svn r12531) -Codechange: Rename some variables for consistency.frosch
2008-03-30(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.rubidium
2008-03-28(svn r12476) -Codechange: split type engine related types from engine.h (and ↵rubidium
openttd.h) to engine_type.h.
2008-03-28(svn r12469) -Codechange: split type related stuff from group.h (and ↵rubidium
openttd.h) to group_type.h.
2008-03-03(svn r12331) -Feature: [NewGRF] vehicle variable FE bit 8glx
2008-02-23(svn r12230) -Codechange: [autoreplace] made a function to detect if a ↵bjarni
vehicle needs autorenewing This will remove duplicated code and ensure that the check is consistent
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-13(svn r12134) -Change: count the number of ticks a vehicle was running this ↵smatz
day to calculate running cost -Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-02-02(svn r12040) -Codechange: Change IsOrderListShared from a simple function to ↵belugas
a class member(MagicBuzz).