summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
AgeCommit message (Collapse)Author
2009-02-04(svn r15340) -Fix [FS#2121]: changing town road layout in-game caused ugly ↵smatz
road networks -Fix: use a flag instead of TL_NO_ROADS to forbid towns to build roads. The flag is ignored during world generation, so there won't be 'ghost' towns anymore -Feature: town layout is now stored per town, so it is possible to (manually) set different layout for each town
2009-02-02(svn r15321) -Codechange: Load road vehicle 'realistic' acceleration ↵peter1138
properties from NewGRF, and supply defaults as used by TTDPatch. These values are not yet used.
2009-01-31(svn r15299) -Cleanup: remove many redundant includessmatz
2009-01-24(svn r15259) -Fix: [NewGRF] small memory leak when scanning labelsrubidium
2009-01-21(svn r15192) -Cleanup: remove unused includerubidium
2009-01-16(svn r15114) -Codechange: Add support for 8 byte action7/9 data, used as a ↵peter1138
mask for GRFID checks.
2009-01-10(svn r14979) -Fix: Disable a NewGRF from loading if it contains multiple ↵peter1138
Action 8s
2009-01-10(svn r14949) -Cleanup: pointer coding stylerubidium
2009-01-09(svn r14939) -Codechange: Follow standard *ChangeInfo() pattern for global ↵peter1138
variables during reservation. Whilst not strictly necessary for global variables, following the same pattern makes it easier to follow. This also solves the long standing ChangeInfoResult/bool warning for MSVC.
2009-01-08(svn r14926) -Feature: Automatically set last engine ageing year to the last ↵peter1138
'introduction year plus half model life', to allow engines later than 2050 to appear.
2009-01-06(svn r14869) -Feature: Allow road vehicles to move multiple steps in a tick ↵peter1138
(code based on train movement code) and add support for RV prop 15. This gives RVs a maximum speed of 318mph instead 79mph. This only implements higher speeds, not 'realistic acceleration'.
2009-01-02(svn r14788) -Fix [FS#2489]: some TTDPatch flags were wrong (Swallow)rubidium
2008-12-29(svn r14769) -Change: when loading games in "network" mode use the start ↵rubidium
date of the save game for the server and all clients when loading the NewGRFs instead of the current date. Prevents desyncs caused by action 7/9s skipping parts of the GRF based on the date or some other variables that can differ at NewGRF load time.
2008-12-24(svn r14740) -Fix (r13675)(r14739): we shouldn't skip all remaining sprites ↵smatz
neither
2008-12-24(svn r14739) -Fix (r13675): when a static GRF was forcibly disabled, wrong ↵smatz
data was released, causing memory leaks and wrong behaviour or crashes
2008-12-24(svn r14738) -Fix (r13576): GCF_STATIC belongs to GRFConfig::flags, not ↵smatz
GRFConfig::status
2008-12-24(svn r14737) -Fix (r10211): memory leak in Action 0x0F (new town names)smatz
2008-12-19(svn r14696) -Fix (r10495): Words now consist of 16 bits.frosch
2008-12-13(svn r14674) -Fix (r4965): Check sprite size when executing action 6.frosch
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.