log src/vehicle.cpp @ 8556:8aae08d562cc draft

age author description
Wed, 13 Feb 2008 19:24:40 +0000 smatz (svn r12134) -Change: count the number of ticks a vehicle was running this day to calculate running cost draft
Sun, 10 Feb 2008 05:21:08 +0000 glx (svn r12097) -Fix (r654, r1525): loading old, pre savegame version 2, savegames. draft
Fri, 01 Feb 2008 15:09:55 +0000 smatz (svn r12033) -Fix: do not show train speed as zero after loading paused game draft
Fri, 18 Jan 2008 13:02:47 +0000 smatz (svn r11916) -Codechange: use enums from VehicleViewWindowWidgets instead of constants draft
Wed, 16 Jan 2008 21:17:31 +0000 smatz (svn r11882) -Codechange: introduce MarkSingleVehicleDirty() and simplify the code at some places draft
Wed, 16 Jan 2008 11:25:15 +0000 rubidium (svn r11874) -Fix [FS#1655]: all wagons of maglev/monorail trains would get the livery colour of the engine instead of their wagon type. draft
Tue, 15 Jan 2008 18:44:22 +0000 rubidium (svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*. draft
Tue, 15 Jan 2008 15:00:01 +0000 smatz (svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later draft
Sun, 13 Jan 2008 14:37:30 +0000 rubidium (svn r11834) -Codechange: only include settings_type.h if needed. draft
Sun, 13 Jan 2008 01:21:35 +0000 rubidium (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. draft
Sat, 12 Jan 2008 19:58:06 +0000 peter1138 (svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is draft
Sat, 12 Jan 2008 14:10:35 +0000 rubidium (svn r11818) -Codechange: split player.h into smaller pieces. draft
Thu, 10 Jan 2008 21:54:45 +0000 smatz (svn r11809) -Fix [FS#1643]: set expenses type when selling all vehicles in depot draft
Wed, 09 Jan 2008 23:00:59 +0000 smatz (svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track draft
Wed, 09 Jan 2008 16:55:48 +0000 rubidium (svn r11793) -Codechange: pass the expense type via the CommandCost instead of a global variable. Patch by Noldo (FS#1114). draft
Wed, 09 Jan 2008 09:45:45 +0000 rubidium (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. draft
Mon, 07 Jan 2008 14:23:25 +0000 rubidium (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. draft
Mon, 07 Jan 2008 09:19:53 +0000 rubidium (svn r11775) -Codechange: move all autoreplace/autorenew functions to a single location. draft
Mon, 07 Jan 2008 00:57:19 +0000 rubidium (svn r11774) -Change: do not include variables.h in a header when it is not needed. draft
Tue, 01 Jan 2008 15:06:37 +0000 peter1138 (svn r11735) -Fix [FS#1574]: Don't reset loading indicator IDs when only reloading NewGRFs. draft
Sat, 29 Dec 2007 09:24:26 +0000 rubidium (svn r11719) -Codechange: split sound.h in a header with types and one with functions. draft
Thu, 27 Dec 2007 13:35:39 +0000 rubidium (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes. draft
Wed, 26 Dec 2007 13:50:40 +0000 rubidium (svn r11702) -Codechange: move all date related stuff to date*. draft
Wed, 26 Dec 2007 11:45:43 +0000 rubidium (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). draft
Tue, 25 Dec 2007 11:26:07 +0000 rubidium (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' draft
Tue, 25 Dec 2007 09:48:53 +0000 rubidium (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. draft
Sun, 23 Dec 2007 10:56:02 +0000 rubidium (svn r11684) -Codechange: split gfx.h in a type and functional header. draft
Sat, 22 Dec 2007 23:30:28 +0000 rubidium (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. draft
Fri, 21 Dec 2007 22:50:51 +0000 rubidium (svn r11680) -Codechange: refactor more out of openttd.h and functions.h. draft
Fri, 21 Dec 2007 21:50:46 +0000 rubidium (svn r11677) -Codechange: move price and command related types/functions to their respective places. draft
Fri, 21 Dec 2007 19:49:27 +0000 rubidium (svn r11675) -Codechange: split the string types from the string functions. draft
Wed, 19 Dec 2007 23:26:02 +0000 rubidium (svn r11669) -Codechange: refactor tile.h -> tile_type.h and tile_map.h draft
Tue, 18 Dec 2007 20:58:12 +0000 rubidium (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. draft
Sat, 15 Dec 2007 23:11:18 +0000 smatz (svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks draft
Sat, 15 Dec 2007 20:30:43 +0000 smatz (svn r11639) -Codechange: simplify EnsureNoVehicleOnGround draft
Sat, 15 Dec 2007 16:11:29 +0000 smatz (svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain draft
Fri, 14 Dec 2007 23:21:20 +0000 smatz (svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge draft
Fri, 14 Dec 2007 21:11:30 +0000 rubidium (svn r11632) -Fix [FS#1541]: vehicles were still followed when sold. draft
Wed, 12 Dec 2007 14:37:35 +0000 smatz (svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too draft
Sun, 25 Nov 2007 15:35:25 +0000 skidd13 (svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random() draft
Sat, 24 Nov 2007 09:14:58 +0000 rubidium (svn r11506) -Fix [FS#1471]: selling vehicles could cause the window of others to scroll to that location. draft
Tue, 20 Nov 2007 13:35:54 +0000 skidd13 (svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style draft
Mon, 19 Nov 2007 21:02:30 +0000 skidd13 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style draft
Mon, 19 Nov 2007 18:58:04 +0000 skidd13 (svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define draft
Mon, 19 Nov 2007 18:38:10 +0000 skidd13 (svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style draft
Mon, 12 Nov 2007 01:12:32 +0000 belugas (svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed draft
Sat, 10 Nov 2007 22:56:43 +0000 rubidium (svn r11400) -Fix [FS#1409]: assign orders during cloning after refitting as it needs the cargo types to be the same. draft
Tue, 30 Oct 2007 20:31:35 +0000 rubidium (svn r11362) -Fix [FS#1380]: cloning vehicles with non-standard sub-cargotypes (i.e. livery refits) failed. draft
Sun, 28 Oct 2007 16:00:51 +0000 glx (svn r11353) -Codechange: add support for newgrf callback 32 draft
Sun, 28 Oct 2007 15:40:18 +0000 glx (svn r11352) -Codechange: cache callback 2D result (vehicle color mapping) instead calling it every time the vehicle is drawn draft
Sat, 20 Oct 2007 17:11:02 +0000 rubidium (svn r11314) -Fix [FS#1356]: stop following a vehicle when you sell/destroyed it. draft
Fri, 19 Oct 2007 22:46:55 +0000 rubidium (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. draft
Sun, 14 Oct 2007 20:12:51 +0000 rubidium (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). draft
Tue, 09 Oct 2007 20:53:25 +0000 rubidium (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. draft
Wed, 26 Sep 2007 17:33:32 +0000 rubidium (svn r11173) -Codechange: rename some callback enums so they are more uniform. draft
Sun, 09 Sep 2007 10:13:17 +0000 rubidium (svn r11065) -Documentation [FS#1186]: of the dirty marking/repainting subsystem. Patch by Progman. draft
Sat, 08 Sep 2007 22:53:10 +0000 rubidium (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. draft
Fri, 07 Sep 2007 17:01:35 +0000 glx (svn r11052) -Fix (r11017)[FS#1210]: vehicles always skip service order draft
Wed, 05 Sep 2007 10:15:23 +0000 bjarni (svn r11045) -Codechange: added a function to tell if a vehicle is the rear part of a dualheaded train engine draft
Fri, 31 Aug 2007 20:52:38 +0000 rubidium (svn r11027) -Fix: do not unconditionally assume that a tile has a depot. draft
Fri, 31 Aug 2007 17:13:39 +0000 rubidium (svn r11017) -Codechange: unify determining whether a vehicle needs/can be service a little more. draft
Fri, 31 Aug 2007 12:57:52 +0000 rubidium (svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist. draft
Thu, 30 Aug 2007 21:11:12 +0000 rubidium (svn r11011) -Fix [FS#1129]: GetFirstVehicleInChain did change the game state while being marked const. draft
Thu, 30 Aug 2007 13:09:44 +0000 rubidium (svn r11004) -Codechange: some reworks of the saveload mechanism to be able to save and load private and protected variables in the vehicle struct. draft
Thu, 30 Aug 2007 13:03:56 +0000 rubidium (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. draft
Wed, 29 Aug 2007 21:49:08 +0000 rubidium (svn r11001) -Codechange: unify the way to determine whether a vehicle is in a depot. draft
Wed, 29 Aug 2007 20:50:58 +0000 rubidium (svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus. draft
Fri, 24 Aug 2007 00:04:51 +0000 belugas (svn r10971) -Codechange: One less magical number draft
Mon, 06 Aug 2007 11:58:15 +0000 maedhros (svn r10808) -Fix (r10353): Make sure spectators can't open infrastructure building menus. draft
Sun, 05 Aug 2007 21:20:55 +0000 rubidium (svn r10799) -Fix: only calling QuickFree and not the destructor on pool cleanups might cause memory leaks due to the way C++ works. draft
Sun, 05 Aug 2007 17:43:04 +0000 rubidium (svn r10798) -Fix [FS#1105]: virtual functions do not work in destructors :(. draft
Fri, 03 Aug 2007 20:17:26 +0000 rubidium (svn r10772) -Codechange: also make use of the generic clean and destroy pool callback functions for vehicle. draft
Fri, 03 Aug 2007 19:36:00 +0000 rubidium (svn r10770) -Codechange: use the pool item class as super class for the vehicle struct. draft
Thu, 02 Aug 2007 21:19:07 +0000 rubidium (svn r10756) -Codechange: use vehicle->IsValid in favour of IsValidVehicle(vehicle). draft
Wed, 01 Aug 2007 22:10:54 +0000 rubidium (svn r10744) -Codechange: make the pool a little more OO, so it can be easier in other places. draft
Mon, 30 Jul 2007 08:49:41 +0000 peter1138 (svn r10734) -Fix [FS#1030]: Revert r10513) and add special cases for collision detection on bridges/tunnels. draft
Sun, 29 Jul 2007 14:02:27 +0000 peter1138 (svn r10721) -Fix [FS#1084]: Skip articulated parts of road vehicles during unique name check. draft
Sat, 28 Jul 2007 00:19:49 +0000 glx (svn r10714) -Fix r10696: MSVC performance warning draft
Thu, 26 Jul 2007 15:37:19 +0000 rubidium (svn r10697) -Codechange: give a more sensible names to some of the unkX variables. draft
Thu, 26 Jul 2007 14:07:11 +0000 rubidium (svn r10696) -Codechange: remove duplication of the "make sprite transparent" code. draft
Wed, 25 Jul 2007 00:16:30 +0000 rubidium (svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line. draft
Tue, 17 Jul 2007 06:56:09 +0000 peter1138 (svn r10603) -Codechange: avoid direct access to _engine_info draft
Wed, 11 Jul 2007 21:31:34 +0000 peter1138 (svn r10513) -Fix [FS#1022]: use vehicle subtile position to update cache, not tile, so that collision detection works on bridges and tunnels. draft
Sun, 08 Jul 2007 17:44:46 +0000 rubidium (svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed. draft
Sun, 01 Jul 2007 19:24:54 +0000 rubidium (svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class. draft
Sun, 01 Jul 2007 19:11:47 +0000 rubidium (svn r10408) -Codechange: make GetImage a class method of Vehicle instead of Get(Aircraft|RoadVeh|Ship|Train)Image. draft
Thu, 28 Jun 2007 19:14:29 +0000 peter1138 (svn r10380) -Fix (r10364): when checking for unique names, only check vehicles that can have names, and skip inactive players. draft
Wed, 27 Jun 2007 20:53:25 +0000 peter1138 (svn r10364) -Fix [FS#706]: checking for duplicate custom names was inconsistent, and tested all 'namespaces'. now only check names of the same type. draft
Wed, 27 Jun 2007 20:40:20 +0000 peter1138 (svn r10363) -Fix [FS#911]: invalidating autoreplace windows didn't take account of vehicle group (Matthias Wolf) draft
Wed, 27 Jun 2007 14:37:46 +0000 rubidium (svn r10354) -Fix [FS#950]: loading indicator showed "^" when the train would load at the given station. draft
Wed, 27 Jun 2007 14:15:48 +0000 rubidium (svn r10353) -Fix/Feature [FS#669]: disallow (in the GUI) the building of infrastructure you do not have available vehicles for. This means that the airport building button is disabled till you can actually build aircraft. The game itself will not disallow you to build the infrastructure and this "new" behaviour can be overriden with a patch setting. draft
Tue, 26 Jun 2007 14:43:41 +0000 maedhros (svn r10341) -Fix (r10236): Only update the timetable when leaving stations if this is a scheduled stop. draft
Mon, 25 Jun 2007 23:14:13 +0000 maedhros (svn r10335) -Fix (r10331): Increment the current order index *after* using it in UpdateVehicleTimetable. draft
Sun, 24 Jun 2007 13:22:41 +0000 KUDr (svn r10302) -Fix [YAPF, MP]: now (with r10301) it is no longer needed to invalidate the YAPF segment cache every tick in MP. Segment cost now doesn't contain the curves between segments. As a result the cache should be now accurate. draft
Fri, 22 Jun 2007 18:28:44 +0000 truelight (svn r10270) -Add: prefixed the loading indicator with an arrow, up meaning vehicle is loading, down meaning vehicle is unloading draft
Fri, 22 Jun 2007 11:58:59 +0000 rubidium (svn r10266) -Codechange: keep track of the origin, time of travel and accumulated feeder share (transfers) of individual pieces of cargo. This means that cargo isn't thrown on a big pile when it's put in a station or unloaded at a station, however the GUI does not reflect these changes yet so you will not actually see it. draft
Thu, 21 Jun 2007 16:17:47 +0000 truelight (svn r10254) -Feature: loading indicator, which shows in % how full a vehicle is while loading/unloading (TheJosh) draft
Wed, 20 Jun 2007 19:17:22 +0000 maedhros (svn r10236) -Feature: Introduce a form of timetabling for vehicles. draft
Mon, 18 Jun 2007 22:49:55 +0000 rubidium (svn r10210) -Codechange: make all money related variables 64 bits, so overflowing them should become a little harder. draft
Mon, 18 Jun 2007 19:53:50 +0000 rubidium (svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified. draft
Mon, 18 Jun 2007 16:42:40 +0000 rubidium (svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded). draft
Mon, 18 Jun 2007 10:48:15 +0000 rubidium (svn r10197) -Codechange: replace int32 with CommandCost where appropriate. draft
Wed, 13 Jun 2007 23:43:00 +0000 rubidium (svn r10154) -Fix [FS#870]: some vehicles were not drawn when having a high resolution and a high zoom-out level. Patch by B. N. SmatZ!. draft
Wed, 13 Jun 2007 23:14:08 +0000 rubidium (svn r10153) -Fix [FS#869]: vehicles disappear when crossing certain tiles. Fix by B. N. SmatZ!. draft
Wed, 13 Jun 2007 07:14:42 +0000 peter1138 (svn r10129) -Fix (r10111): Test for x == INVALID_COORD instead of v->tile == INVALID_TILE to determine if a vehicle should be removed from the has. draft
Wed, 13 Jun 2007 01:38:00 +0000 glx (svn r10126) -Fix (r10111, FS#864): old_new_hash cache was not reset when the position hash were draft
Tue, 12 Jun 2007 11:22:32 +0000 peter1138 (svn r10111) -Codechange: Add new vehicle hash table for collision detection and finding vehicles on a tile. The hash area scanned is far smaller than the old hash table, which is now used for viewport updates only. This should give a significant performance improvement for games with many vehicles. (Based on work by 'B. N. SmatZ!' and 'madman2003') draft
Mon, 11 Jun 2007 14:00:16 +0000 maedhros (svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for draft
Sat, 09 Jun 2007 18:31:04 +0000 bjarni (svn r10077) -Fix: FS#845 Cloning Trains Longer Than 8 Units Causes Crash draft
Fri, 08 Jun 2007 09:35:39 +0000 peter1138 (svn r10062) -Codechange: Don't redraw all station tiles when cargo is added or removed if the station has no custom graphics. draft
Thu, 07 Jun 2007 12:37:48 +0000 rubidium (svn r10056) -Revert (r10049): removing SLE_WRITEBYTE didn't work as expected :(. Somehow SlIterateArray and SlObject depend on eachother and adding a some arbitrary data before the SlObject makes it go crazy. draft
Wed, 06 Jun 2007 23:57:21 +0000 rubidium (svn r10049) -Codechange: get rid of the SLE_WRITEBYTE obfuscation. draft
Wed, 06 Jun 2007 10:51:11 +0000 peter1138 (svn r10048) -Fix (r6455): Don't use override engine type for articulated wagon parts. draft
Sat, 02 Jun 2007 09:11:06 +0000 maedhros (svn r10020) -Fix [FS#824]: GetNextVehicle() is invalid for anything that isn't a train. draft
Fri, 01 Jun 2007 12:03:10 +0000 maedhros (svn r10009) -Codechange: Add and use Vehicle::IsPrimaryVehicle to replace individual checks depending on the vehicle type. draft
Sun, 27 May 2007 17:27:07 +0000 maedhros (svn r9959) -Fix: Only call GetNextVehicle for trains. draft
Sun, 27 May 2007 09:33:41 +0000 peter1138 (svn r9956) -Codechange: Add tram livery schemes draft
Sun, 27 May 2007 05:32:37 +0000 maedhros (svn r9953) -Fix: Only check whether trains are multiheaded when cloning. draft
Sat, 26 May 2007 17:06:45 +0000 maedhros (svn r9939) -Fix (r3139): EngineHasArticPart(v) is only valid for trains. draft
Fri, 25 May 2007 08:13:01 +0000 rubidium (svn r9917) -Codechange: prepare some more areas for more road types. draft