rubidium
818a23e7f2
(svn r11664) -Codechange: use more specific ("rail_type.h" instead of "rail.h" that includes way more than only "rail_type.h") includes at some places.
17 years ago
smatz
60f9bbd17e
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
17 years ago
smatz
f13a60b90c
(svn r11639) -Codechange: simplify EnsureNoVehicleOnGround
17 years ago
smatz
c972d309be
(svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain
17 years ago
smatz
d31506654c
(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge
17 years ago
rubidium
6685c7c8e2
(svn r11632) -Fix [FS#1541]: vehicles were still followed when sold.
17 years ago
smatz
3b59b68a15
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
17 years ago
skidd13
e36dba227b
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
...
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
17 years ago
rubidium
49e2e29685
(svn r11506) -Fix [FS#1471]: selling vehicles could cause the window of others to scroll to that location.
17 years ago
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
17 years ago
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
17 years ago
skidd13
f4a5c80d71
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
17 years ago
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
17 years ago
belugas
8e7111491c
(svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed
17 years ago
rubidium
dd4720461b
(svn r11400) -Fix [FS#1409]: assign orders during cloning after refitting as it needs the cargo types to be the same.
17 years ago
rubidium
f9079240bd
(svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed.
17 years ago
glx
7e769d3286
(svn r11353) -Codechange: add support for newgrf callback 32
17 years ago
glx
6120d02751
(svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) instead calling it every time the vehicle is drawn
17 years ago
rubidium
29ebb28c65
(svn r11314) -Fix [FS#1356]: stop following a vehicle when you sell/destroyed it.
17 years ago
rubidium
8342c18fb5
(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both 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.
17 years ago
rubidium
633004402a
(svn r11262) -Fix [FS#1330]: do not check for vehicles that are not on the ground when removing owned land, furthermore do not check for shadows (of aircraft).
17 years ago
rubidium
038c98bee3
(svn r11236) -Fix [FS#1322]: DeleteVehicleChain can just work as good for all vehicles, instead of not allowing trains to use it (enforced by an assert), but actually using it for trains. Patch by SmatZ.
17 years ago
rubidium
a28b307c95
(svn r11173) -Codechange: rename some callback enums so they are more uniform.
17 years ago
rubidium
0ca9fd7dc2
(svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman.
17 years ago
rubidium
10ea6cd13c
(svn r11064) -Fix [FS#553]: when autorenew is enabled and it cannot renew the vehicle anymore (because the player cannot build the engine), the aging warnings as if autorenew is not enabled are shown.
17 years ago
glx
5ad79a5db0
(svn r11052) -Fix (r11017)[FS#1210]: vehicles always skip service order
17 years ago
bjarni
7cd2aeb1c9
(svn r11045) -Codechange: added a function to tell if a vehicle is the rear part of a dualheaded train engine
17 years ago
rubidium
2cd15f732c
(svn r11027) -Fix: do not unconditionally assume that a tile has a depot.
17 years ago
rubidium
cadc470da5
(svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more.
17 years ago
rubidium
3b672a5c5f
(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
17 years ago
rubidium
732845440a
(svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game 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.
17 years ago
rubidium
f830699971
(svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct.
17 years ago
rubidium
235ad4ab6b
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
17 years ago
rubidium
c2dcccae16
(svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot.
17 years ago
rubidium
a6a9968d16
(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.
17 years ago
belugas
e9435c11b0
(svn r10971) -Codechange: One less magical number
17 years ago
maedhros
b17975d1f2
(svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure building menus.
17 years ago
rubidium
8f719a7b2d
(svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works.
17 years ago
rubidium
dfe851e02f
(svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(.
17 years ago
rubidium
9df2e25258
(svn r10772) -Codechange: also make use of the generic clean and destroy pool callback functions for vehicle.
17 years ago
rubidium
b21f29c38f
(svn r10770) -Codechange: use the pool item class as super class for the 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.
17 years ago
rubidium
99da45988a
(svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle).
17 years ago
rubidium
0ab03b835b
(svn r10744) -Codechange: make the pool a little more OO, so it can be easier in other places.
17 years ago
peter1138
9b9bca40b9
(svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for collision detection on bridges/tunnels.
17 years ago
peter1138
f975e2e85c
(svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during unique name check.
17 years ago
glx
05ae4506af
(svn r10714) -Fix r10696: MSVC performance warning
17 years ago
rubidium
a67957866a
(svn r10697) -Codechange: give a more sensible names to some of the unkX variables.
17 years ago
rubidium
a26ef1ee3a
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
17 years ago
rubidium
7fe3635cdb
(svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line.
17 years ago
peter1138
61e41b24b4
(svn r10603) -Codechange: avoid direct access to _engine_info
17 years ago