summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
AgeCommit message (Collapse)Author
2010-01-23(svn r18893) -Codechange: Replace grf_load_* with methods of ByteReader.peter1138
2010-01-22(svn r18886) -Fix (r18884): Spurious castingpeter1138
2010-01-22(svn r18885) -Fix (r18884): Industry tile layouts weren't completely freed ↵peter1138
on error.
2010-01-22(svn r18884) -Fix: [NewGRF] Perform bounds checking for all NewGRF data ↵peter1138
reads. Explicit length checks (which were not always correct) are no longer needed so these are removed to simplify code.
2010-01-21(svn r18872) -Codechange: introduce PaletteID and use itrubidium
2010-01-17(svn r18842) -Codechange: Rename SPRITE_MODIFIER_USE_OFFSET to ↵frosch
SPRITE_MODIFIER_CUSTOM_SPRITE, invert its meaning, and also use it for industry/house layouts instead of IS_CUSTOM_SPRITE().
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-08(svn r18761) -Fix [FS#3497]: Spritelayouts do not need an Action 1 if only ↵frosch
using default sprites.
2010-01-08(svn r18760) -Fix (rlots)[FS#3500]: Action 9 did not properly detect whether ↵frosch
an Action 8 was encountered already.
2010-01-08(svn r18759) -Fix [NewGRF]: don't segfault when a newgrf contains an action2 ↵yexo
and action3 but no action0
2010-01-06(svn r18742) -Fix [NewGRF]: house prop 1D was thrashed when a newgrf ↵yexo
contains prop 14 after prop 1D
2010-01-03(svn r18699) -Fix [FS#PlanetAndy]: GRF parameters were not properly ↵frosch
initialised to zero, and not always checked for valid range.
2009-12-30(svn r18671) -Fix [FS#3452]: [NewGRF] If an action B did not have a 'data' ↵rubidium
string but would print it OpenTTD would segfault
2009-12-17(svn r18527) -Fix: an industry newgrf that defined a too small size for ↵yexo
action0 prop 0A could cause a crash
2009-12-16(svn r18514) -Codechange: make it a bit clearer that for tile layouts ↵rubidium
num_sprites (as in number of sprite sets) is not the same as num_sprites (as in number of building sprites)
2009-11-28(svn r18330) -Cleanup: remove some unneeded includesrubidium
2009-11-24(svn r18284) -Cleanup (r18268, r18283): Replace magic value with enum.frosch
2009-11-24(svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, ↵frosch
building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns. If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
2009-11-24(svn r18268) -Feature: [NewGRF] Make price base multipliers related to ↵frosch
vehicles only apply to the GRF locally, if it defines engines of that type itself.
2009-11-23(svn r18253) -Codechange: Convert the linked list of loaded GRFFiles into a ↵frosch
SmallVector.
2009-11-10(svn r18036) -Fix (r17999): Always two they are.frosch
2009-11-09(svn r18027) -Codechange: make some unneededly global variables static and ↵rubidium
remove some unused variables
2009-11-08(svn r18016) -Codechange: Move the arbitrary basecost multiplier offset (8) ↵frosch
to newgrf loading and make the internal state zero-based instead.
2009-11-08(svn r18011) -Feature(ette): [NewGRF] CB 36 for roadvehicle property 09 ↵frosch
'running cost factor'.
2009-11-08(svn r18008) -Codechange: Rename NUM_PRICES to PR_END, and use the Price ↵frosch
enum some more.
2009-11-07(svn r18005) -Codechange: Convert the Prices struct into an array and an enum.frosch
2009-11-07(svn r18004) -Codechange: Deduplicate some magic.frosch
2009-11-07(svn r17999) -Fix: [NewGRF] Improve parsing of RIFF data. Skip unknown ↵frosch
chunks and check chunk sizes.
2009-11-05(svn r17976) -Codechange: Move CargoClass to cargotype.h and clean up ↵frosch
including of newgrf_cargo.h
2009-10-24(svn r17857) -Fix (r10442): [NewGRF] 'subtract-in' is also signed for ↵frosch
production callback version 0.
2009-10-20(svn r17824) -Fix (r4594): _date_fract runs from 0 to 73 since r2041. ↵frosch
Variable 0x09 should not.
2009-10-04(svn r17700) -Codechange: Integrate ShipVehicleInfo::refittable into ↵frosch
EngineInfo::refit_mask during initialisation.
2009-10-04(svn r17693) -Cleanup: remove some unneeded includesrubidium
2009-10-02(svn r17682) -Codechange: remove erroneous space before some commasrubidium
2009-09-28(svn r17663) -Change: [NewGRF] Apply default refitmasks only when the NewGRF ↵frosch
did not set any of the three refittability properties (xor mask, positive classes, negative classes).
2009-09-22(svn r17616) -Codechange [FS#3222]: Enumerize properties used in callback ↵frosch
0x36. Based on Terkhen's work.
2009-09-21(svn r17605) -Fix [FS#3218]: [NewGRF] Crash when defining the same tile in a ↵rubidium
tile layout twice
2009-09-20(svn r17596) -Codechange: constify some tablessmatz
2009-09-20(svn r17584) -Codechange: split the NewGRF StringID mapping in a 'global' ↵rubidium
part and a part that's for NewGRF strings
2009-09-14(svn r17534) -Codechange: unify the naming of callback masks/flagsrubidium
2009-09-04(svn r17420) -Codechange: replace assert() by assert_compile() where possiblesmatz
2009-08-21(svn r17248) -Fix: add GPL license notice where appropriaterubidium
2009-08-20(svn r17228) -Codechange: some coding style fixesrubidium
2009-08-18(svn r17211) -Cleanup: Remove unused RailVehicleInfo::ai_rank.frosch
2009-08-17(svn r17209) -Codechange: Move cargo_type from (Rail|Road|Ship)VehicleInfo ↵frosch
to EngineInfo.
2009-08-11(svn r17154) -Fix (r11129): several times copypasted typosmatz
2009-08-11(svn r17153) -Fix (r11429): don't allow further remapping of already ↵smatz
remapped string
2009-08-10(svn r17150) -Codechange: when MapGRFStringID() fails to remap, return ↵smatz
STR_EMPTY instead of 'random' string
2009-08-10(svn r17143) -Fix [FS#3097]: NewGRFs sometimes got the wrong string causing ↵rubidium
crashes later on
2009-07-17(svn r16867) -Feature(ette): Turn variable 0E/8E (vertical offset for trains ↵frosch
in depot) and variable 1E/9E bit 3 (wagon width in depot) into grf-local variables.