newgrf_engine.c
Fri, 22 Jun 2007 20:08:37 +0000 rubidium (svn r10279) [0.5] -Backport from trunk (r10139, r10153, r10154, r10155, r10165, r10187): 0.5
Mon, 19 Mar 2007 18:47:10 +0000 rubidium (svn r9341) [0.5] -Backport from trunk (r8943, r8955, r8976, r8999, r9009): 0.5
Sat, 24 Feb 2007 01:47:26 +0000 Darkvater (svn r8874) [0.5] -Backport from trunk (r8744, r8685): 0.5
Mon, 18 Dec 2006 10:46:06 +0000 peter1138 (svn r7503) -Codechange: [NewGRF] Add bounds checking for spriteset cargo types. (NewCargo support will change this rule a bit...)
Wed, 29 Nov 2006 11:48:47 +0000 peter1138 (svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word.
Tue, 28 Nov 2006 23:44:12 +0000 peter1138 (svn r7284) -Fix (r2361): off by one when calculating vehicle newgrf variable 41 result, partly blamed by vague documentation... (thanks lakie)
Tue, 28 Nov 2006 21:03:28 +0000 peter1138 (svn r7282) -Fix (r625): ttdpatch vars are little endian
Sat, 21 Oct 2006 14:53:57 +0000 peter1138 (svn r6870) - Codechange: (re-)unify the code to retrieve the sprite group for a vehicle.
Tue, 17 Oct 2006 14:52:55 +0000 peter1138 (svn r6795) - NewGRF: Add support for cargo-specific wagon overrides.
Thu, 12 Oct 2006 15:05:25 +0000 peter1138 (svn r6756) - Fix: When resolving vehicle groups, only fall back to the default group if the group chosen is undefined, not if it returns a bad result. This fixes some issues with UKRS.
Wed, 11 Oct 2006 18:35:40 +0000 peter1138 (svn r6736) - Add a function to get the list position of an engine ID, for use with sorting. This is basically a reversed version of GetRailVehAtPosition()
Wed, 11 Oct 2006 17:28:31 +0000 peter1138 (svn r6735) - Codestyle: Just some tidying up...
Wed, 27 Sep 2006 18:17:01 +0000 peter1138 (svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported.
Sun, 20 Aug 2006 20:21:00 +0000 rubidium (svn r6013) -Fix: some newgrf properties returned the date in the new format where the newgrf's expect the original format. Thanks to michi_cc for finding these and providing the initial patch.
Sun, 20 Aug 2006 12:39:17 +0000 rubidium (svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
Wed, 16 Aug 2006 11:39:55 +0000 rubidium (svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920
Mon, 14 Aug 2006 14:21:15 +0000 rubidium (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
Fri, 23 Jun 2006 22:05:40 +0000 richk (svn r5346) - Feature: Add 4 new airports. 2 for aircraft, 2 for helicopters.
Thu, 22 Jun 2006 21:31:09 +0000 peter1138 (svn r5338) - NewGRF: add support for vehicle variable 48, vehicle type info (more mart3p)
Thu, 22 Jun 2006 21:25:51 +0000 peter1138 (svn r5337) - NewGRF: pass the engine type to the engine resolver, to allow support for variable 7F for unbuilt vehicles (mart3p)
Thu, 22 Jun 2006 21:15:27 +0000 peter1138 (svn r5336) - NewGRF: draw custom helicopter rotor sprites in vehicle info window, ensuring the correct direction is used (inspiration from mart3p)
Thu, 22 Jun 2006 21:03:19 +0000 peter1138 (svn r5335) - Newgrf: correct spelling of hangar
Tue, 20 Jun 2006 13:15:56 +0000 peter1138 (svn r5320) - NewGRF: make sets using TTDPatch's train reversing hack/feature happier (and consistent) by returning 0 for the flag it uses.
Wed, 14 Jun 2006 11:05:30 +0000 tron (svn r5262) Add symbolic names for the aircraft subtypes. not perfect, but better than raw numbers
Wed, 31 May 2006 17:40:48 +0000 peter1138 (svn r5060) - NewGRF: add support for variable 7F (retrieve GRF parameter) for vehicles
Wed, 31 May 2006 17:31:08 +0000 peter1138 (svn r5059) - NewGRF: store a GRFFile pointer reference for each pointer, instead of just the GRF ID.
Tue, 30 May 2006 21:23:01 +0000 peter1138 (svn r5047) - NewGRF: fix typo of AIRPORT in enum
Tue, 23 May 2006 19:36:50 +0000 peter1138 (svn r4960) - NewGRF: explicitly handle unsupported variables, instead of returning -1.
Fri, 19 May 2006 10:04:03 +0000 peter1138 (svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations
Thu, 18 May 2006 02:43:23 +0000 belugas (svn r4902) Newgrf : Introduction of the newgrf_cargo files.
Wed, 17 May 2006 08:20:36 +0000 peter1138 (svn r4896) - NewGRF: add support for vehicle property 0x25 (user defined data) used by variable 0x42.
Mon, 15 May 2006 06:49:36 +0000 peter1138 (svn r4872) - NewGRF: add support for vehicle variable 0x47 (mart3p)
Sun, 14 May 2006 20:58:12 +0000 peter1138 (svn r4869) - NewGRF: support setting train list vehicle width to 32 instead of 29 pixels, for sets which use 32 pixel long engines/wagons.
Sun, 14 May 2006 15:11:12 +0000 peter1138 (svn r4867) - NewGRF: implement partial support for engine variable 0x42
Mon, 08 May 2006 10:01:34 +0000 peter1138 (svn r4781) - NewGRF: give _traininfo_vehicle_pitch a proper declaration
Wed, 03 May 2006 20:51:42 +0000 peter1138 (svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list)
Wed, 03 May 2006 15:46:21 +0000 peter1138 (svn r4714) - NewGRF: simplify evaluation of 'real' sprite groups.
Wed, 03 May 2006 12:17:02 +0000 peter1138 (svn r4708) - NewGRF: fix selection of number of loaded and loading states.
Tue, 02 May 2006 21:42:11 +0000 peter1138 (svn r4702) - NewGRF: add support for 'special' vehicle callbacks that use a different vehicle for parent scope than the first vehicle in the consist.
Tue, 02 May 2006 20:44:06 +0000 peter1138 (svn r4697) - NewGRF: callback IDs can now be 16 bit values.
Tue, 02 May 2006 20:17:17 +0000 peter1138 (svn r4696) - NewGRF: add support for vehicle variable 0x60, count vehicle type occurance.
Tue, 02 May 2006 18:56:07 +0000 peter1138 (svn r4691) - Codechange: don't use unnamed unions as GCC 2.95.ancient won't compile it. Needed for our MorphOS user ;)
Mon, 01 May 2006 14:30:24 +0000 peter1138 (svn r4649) - NewGRF: limit helicopter rotor animation frames to the number of sprites in the set.
Mon, 01 May 2006 12:00:14 +0000 peter1138 (svn r4644) - NewGRF: support for variable 0x44, aircraft information. (mart3p)
Mon, 01 May 2006 11:35:18 +0000 peter1138 (svn r4643) - NewGRF: Add support for ttdp aircraft states. This involves mapping from our own state. (heavily based on mart3p's code)
Mon, 01 May 2006 06:38:36 +0000 peter1138 (svn r4636) - NewGRF: when dealing with vehicle types other than trains, set the parent scope vehicle to be the same as self scope. (Thanks mart3p)
Sun, 30 Apr 2006 18:41:16 +0000 peter1138 (svn r4632) - NewGRF: support loading of helicopter rotor sprites (mart3p)
Sun, 30 Apr 2006 18:19:37 +0000 peter1138 (svn r4629) - NewGRF: constify more code that deals with sprite groups, now that ref counting is gone.
Fri, 28 Apr 2006 20:04:57 +0000 peter1138 (svn r4611) - NewGRF: introduce new vehicle sprite group resolver code. This also fixes some known bugs (e.g. the 'Standard Five' in UKRS is now the correct colour)
Fri, 28 Apr 2006 19:49:48 +0000 peter1138 (svn r4609) - NewGRF: give GetCustomEngineSprite the correct return type
Thu, 27 Apr 2006 23:28:56 +0000 peter1138 (svn r4600) - NewGRF: minor code style tidy up
Wed, 26 Apr 2006 20:44:28 +0000 peter1138 (svn r4583) - NewGRF: Revamp sprite group loading to support advanced varadjusts and variable size. These are not yet processed, however.
Sun, 23 Apr 2006 22:25:33 +0000 peter1138 (svn r4559) - NewGRF: keep a record of which grf an engine is defined in. Will be used in the future.
Sat, 22 Apr 2006 13:56:16 +0000 Darkvater (svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P
Fri, 21 Apr 2006 20:59:04 +0000 peter1138 (svn r4510) - NewGRF bounds checking:
Fri, 21 Apr 2006 17:02:51 +0000 peter1138 (svn r4500) - NewGRF: When running a callback with no vehicle, use the purchase list 'cargo' type first, and then fallback to the default if needed.
Fri, 21 Apr 2006 07:06:31 +0000 peter1138 (svn r4496) - NewGRF: switch custom engine names from storing a char* to using the new StringID based text system. Vehicle name
Thu, 20 Apr 2006 20:51:57 +0000 peter1138 (svn r4486) - NewGRF: Create and use a memory pool to manage sprite groups. This
Fri, 31 Mar 2006 10:14:25 +0000 peter1138 (svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting.
Sun, 26 Mar 2006 22:56:58 +0000 Darkvater (svn r4132) - Missed 3 CargoID's