summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
AgeCommit message (Collapse)Author
2008-08-30(svn r14191) -Codechange: unify the code to skip sprite payload (i.e. not ↵rubidium
the header). -Fix: sprite payload skipping wouldn't skip enough bytes in a very small subset of compressed sprites.
2008-08-30(svn r14189) -Fix (r14188): Accidental line removalpeter1138
2008-08-30(svn r14188) -Codechange: [NewGRF] Cargo type of 0xFF is specified to be ↵peter1138
'use first refittable cargo', so don't issue a warning for it.
2008-08-29(svn r14184) -Codechange: [NewGRF] Since our NewGRF handling is better than ↵peter1138
it used to be, disable a NewGRF if unexpected sprites are reached.
2008-08-28(svn r14182) -Fix: After applying NewGRF settings, all rail and road types ↵peter1138
were available as the engine availability check was performed too early.
2008-08-25(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'smatz
2008-08-25(svn r14172) -Feature[newGRF]: Add support for property 0x13 for Bridges.belugas
In other words, one can now specifies a 16 bits cost multiplier.
2008-08-24(svn r14160) -Codechange: Move _railtype_cost_multipliers into the rail type ↵peter1138
information struct.
2008-08-24(svn r14158) -Codechange: Initialization of rail type data from static ↵peter1138
source, so data can be changed.
2008-08-23(svn r14146) -Codechange: allow palette override in both ways and remove ↵rubidium
some unneeded '(x == 0) ? 0 : 1' constructs.
2008-08-19(svn r14102) -Fix [FS#1986]: make NewGRF action 0x06's changes persistent ↵rubidium
over the several loading stages.
2008-08-15(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, ↵peter1138
indicating what it actually is.
2008-07-30(svn r13885) -Fix [FS#2168]: Var 0x7F is not feature-specific.frosch
2008-07-30(svn r13881) -Cleanup (r12751): Remove some dead code.frosch
2008-07-26(svn r13831) -Codechange: Make purchase list order NewGRF property an ↵peter1138
extended byte.
2008-07-21(svn r13774) -Codechange: Add support for changing vehicle purchase list ↵peter1138
position for all vehicle types.
2008-07-20(svn r13761) -Codechange: Remove dependency on rail for altering purchase ↵peter1138
list position (mostly function renaming)
2008-07-04(svn r13675) -Fix: memory leak when NewGRFs got forcefully disabled and they ↵rubidium
defined GOTO labels.
2008-06-20(svn r13594) -Feature(ette)[FS#2093]: Supply newgrfs with 'day of month', ↵frosch
'leap year' and 'day of year'.
2008-06-19(svn r13576) -Codechange: disable static NewGRFs when non-static NewGRFs ↵rubidium
query them in the context of network games. This makes it impossible for static NewGRFs to disable non-static NewGRFs and 'bad' things happening because the non-static NewGRF doesn't know about the static NewGRF.
2008-06-12(svn r13482) -Codechange: Use "extended bytes" in Actions 3 and 4 for vehiclespeter1138
2008-06-11(svn r13469) -Codechange: add support for loading Action 0x05, type 0F: ↵rubidium
"tracks for slopes". It's not useful right now, but it will be in the future.
2008-06-11(svn r13464) -Codechange: support NewGRF Action 0x05, type 12.rubidium
2008-06-10(svn r13456) -Codechange: use AllocaM() macro instead of alloca() at most placessmatz
2008-06-10(svn r13437) -Feature[newGRF]: Add long format introduction and maximum ↵belugas
construction year for house.
2008-06-05(svn r13390) -Codechange: introduce usererror() for fatal but not openttd ↵glx
related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror().
2008-06-05(svn r13388) -Codechange: Remove "my invented flag for something that is a ↵peter1138
wagon"
2008-06-04(svn r13376) -Feature: Add access to current long year and date from Action ↵belugas
7/9/D and VarAction2 (23/24 or A3/A4) Add access to (long format) building year, in Variational Action2 Variable 49 for Vehicles
2008-06-03(svn r13374) -Fix (r13364): Some common compilers do not yet support 9 year ↵peter1138
old specifications.
2008-06-03(svn r13372) -Cleanup: Excessive whitespacepeter1138
2008-06-03(svn r13371) -Fix (r4510 ... r12924): Engine array size is not related to ↵peter1138
the ID used when setting a vehicle's name (it is vehicle type specific). Instead just test for a generic string.
2008-06-03(svn r13368) -Codechange: give house's min/max_date a better name, as it is ↵belugas
really year, not date
2008-06-02(svn r13364) -Codechange: Refactor action 3 mapping to use grf_load_*() ↵peter1138
instead of direct byte array access.
2008-06-02(svn r13363) -Codechange: Code duplication tidy uppeter1138
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-27(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.rubidium
2008-05-25(svn r13255) -Codechange: move _opt to _settings.rubidium
2008-05-25(svn r13251) -Codechange: rename _patches to _settings as that is more logic.rubidium
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-24(svn r13226) -Feature: Allow to have more than only two airports per town. ↵belugas
The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is. Initial concept : TTDPatch (moreairpots), Initial code : Pasky Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
2008-05-13(svn r13074) -Fix: For multiheaded engines, halve power and running cost ↵peter1138
when used instead of when loading, to allow callback values to work properly.
2008-05-08(svn r13008) -Fix [FS#1997]: silence some MSVC x64 warningsglx
2008-05-06(svn r12973) -Codechange: Rename GRMSpriteEntry to GRFLocation, as it is not ↵peter1138
necessarily specific to GRM sprites...
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-05-05(svn r12958) -Codechange: Allocate sprites reserved by GRM in advance of ↵peter1138
'Action 1' sprites, giving much less chance of GRM reservation failure if lots of NewGRF sets are loaded.
2008-05-05(svn r12950) -Fix: two includes is one too muchbelugas
2008-05-04(svn r12944) -Codechange: use rev.h instead of externs at many placessmatz
2008-04-30(svn r12932) -Fix [FS#1970]: Articulated engines ignored GRF engine overrides.peter1138
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-22(svn r12839) -Codechange: Allocate temporary engine data when loading GRFs ↵peter1138
as needed instead of statically.
2008-04-19(svn r12798) -Feature: Add some support for NewGRF station animation. ↵peter1138
(Thanks to mart3p for samples and fixes)