summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
AgeCommit message (Collapse)Author
2008-09-30(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.rubidium
2008-09-03(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs ↵rubidium
in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
2008-09-02(svn r14230) -Codechange: Simplify MapDOSColour() using the new stuff.frosch
2008-09-02(svn r14229) -Feature: allow overriding the palette of the base GRFs. This ↵rubidium
way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported.
2008-08-31(svn r14203) -Codechange: [NewGRF] Disable a GRF if it contains an unknown ↵peter1138
property, or tries to assign an invalid ID.
2008-08-31(svn r14202) -Codechange: [NewGRF] Give more meaningful output if a ↵peter1138
house/industry/industrytile is undefined in action 3, and continue processing remaining IDs.
2008-08-31(svn r14201) -Codechange: [NewGRF] Don't continue processing an Action 0 if ↵peter1138
we didn't read the data for a property -- the data will be wrong for subsequent reads. -Codechange: [NewGRF] *Do* continue processing if the value of a property is invalid, however.
2008-08-31(svn r14199) -Codechange: split fileio.h into fileio_type.h and ↵rubidium
fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-31(svn r14198) -Codechange: [NewGRF] Simplify handling of common vehicle ↵peter1138
properties.
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