summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
AgeCommit message (Collapse)Author
2007-12-21(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.rubidium
2007-12-21(svn r11677) -Codechange: move price and command related types/functions to ↵rubidium
their respective places.
2007-12-21(svn r11675) -Codechange: split the string types from the string functions.rubidium
2007-12-19(svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.hrubidium
2007-12-18(svn r11664) -Codechange: use more specific ("rail_type.h" instead of ↵rubidium
"rail.h" that includes way more than only "rail_type.h") includes at some places.
2007-12-15(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so ↵smatz
remove useless checks
2007-12-15(svn r11639) -Codechange: simplify EnsureNoVehicleOnGroundsmatz
2007-12-15(svn r11637) -Fix: mark viewports dirty when removing visible vehicle chainsmatz
2007-12-14(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into ↵smatz
GetVehicleTunnelBridge
2007-12-14(svn r11632) -Fix [FS#1541]: vehicles were still followed when sold.rubidium
2007-12-12(svn r11625) -Codechange: add CO_* enum at some places, add includes of ↵smatz
order.h too
2007-11-25(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp ↵skidd13
cause they depend on Random() -Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
2007-11-24(svn r11506) -Fix [FS#1471]: selling vehicles could cause the window of ↵rubidium
others to scroll to that location.
2007-11-20(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the ↵skidd13
remaining to fit with the naming style
2007-11-19(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming ↵skidd13
style
2007-11-19(svn r11476) -Codechange: rename the function myabs to abs to get rid of an ↵skidd13
unneeded define
2007-11-19(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit ↵skidd13
with the coding style
2007-11-12(svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was ↵belugas
last seen while been center-followed
2007-11-10(svn r11400) -Fix [FS#1409]: assign orders during cloning after refitting as ↵rubidium
it needs the cargo types to be the same.
2007-10-30(svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard ↵rubidium
sub-cargotypes (i.e. livery refits) failed.
2007-10-28(svn r11353) -Codechange: add support for newgrf callback 32glx
2007-10-28(svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) ↵glx
instead calling it every time the vehicle is drawn
2007-10-20(svn r11314) -Fix [FS#1356]: stop following a vehicle when you ↵rubidium
sell/destroyed it.
2007-10-19(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both ↵rubidium
used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
2007-10-14(svn r11262) -Fix [FS#1330]: do not check for vehicles that are not on the ↵rubidium
ground when removing owned land, furthermore do not check for shadows (of aircraft).
2007-10-09(svn r11236) -Fix [FS#1322]: DeleteVehicleChain can just work as good for ↵rubidium
all vehicles, instead of not allowing trains to use it (enforced by an assert), but actually using it for trains. Patch by SmatZ.
2007-09-26(svn r11173) -Codechange: rename some callback enums so they are more uniform.rubidium
2007-09-09(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting ↵rubidium
subsystem. Patch by Progman.
2007-09-08(svn r11064) -Fix [FS#553]: when autorenew is enabled and it cannot renew ↵rubidium
the vehicle anymore (because the player cannot build the engine), the aging warnings as if autorenew is not enabled are shown.
2007-09-07(svn r11052) -Fix (r11017)[FS#1210]: vehicles always skip service orderglx
2007-09-05(svn r11045) -Codechange: added a function to tell if a vehicle is the rear ↵bjarni
part of a dualheaded train engine
2007-08-31(svn r11027) -Fix: do not unconditionally assume that a tile has a depot.rubidium
2007-08-31(svn r11017) -Codechange: unify determining whether a vehicle needs/can be ↵rubidium
service a little more.
2007-08-31(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of ↵rubidium
a consist.
2007-08-30(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game ↵rubidium
state while being marked const. -Codechange: do not brute force determine the first vehicle in the chain or previous vehicle, but do it by properly accounting the previous and first pointers when updating the next pointer. This gives a performance increase of about 15% when there are a lot of vehicles in the game.
2007-08-30(svn r11004) -Codechange: some reworks of the saveload mechanism to be able ↵rubidium
to save and load private and protected variables in the vehicle struct.
2007-08-30(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and ↵rubidium
Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-29(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.rubidium
2007-08-24(svn r10971) -Codechange: One less magical numberbelugas
2007-08-06(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure ↵maedhros
building menus.
2007-08-05(svn r10799) -Fix: only calling QuickFree and not the destructor on pool ↵rubidium
cleanups might cause memory leaks due to the way C++ works.
2007-08-05(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.rubidium
2007-08-03(svn r10772) -Codechange: also make use of the generic clean and destroy ↵rubidium
pool callback functions for vehicle.
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-08-02(svn r10756) -Codechange: use vehicle->IsValid in favour of ↵rubidium
IsValidVehicle(vehicle).
2007-08-01(svn r10744) -Codechange: make the pool a little more OO, so it can be ↵rubidium
easier in other places.
2007-07-30(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for ↵peter1138
collision detection on bridges/tunnels.
2007-07-29(svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during ↵peter1138
unique name check.
2007-07-28(svn r10714) -Fix r10696: MSVC performance warningglx