Commit Graph

22 Commits (b23191ddaea64c34e67e027f1992da4ece349a61)

Author SHA1 Message Date
peter1138 5e7ae74345 (svn r6654) - Codechange: If no 2cc vehicles are available, hide the secondary colour choice. 18 years ago
peter1138 653e7fa548 (svn r6532) - Feature: Add support for NewGRF sound effects. Currently sound priority isn't supported. 18 years ago
peter1138 282b76a0b3 (svn r4901) - Codechange: change 'SpriteGroup *' to 'struct SpriteGroup *' within StationSpec and GRFFile struct declarations. Now only code which actually references those pointers needs to know about the SpriteGroup struct. Remove some unnecessary lingering header dependencies. 18 years ago
peter1138 31a54a6835 (svn r4767) - Newstations: fix loading / use of custom ground sprites 18 years ago
peter1138 0a532f8491 (svn r4760) - Newstations: change the way custom stations are allocated when loading from GRF, as the current way was flawed (reallocing memory which is referenced elsewhere) 18 years ago
peter1138 4e85de164c (svn r4650) - NewGRF: use the correct type for _cur_spriteid 18 years ago
peter1138 b54ebaba70 (svn r4549) - NewGRF: store the grf version from Action 0x08. 18 years ago
peter1138 14b6860e62 (svn r4546) - NewGRF: add support for Action 0x05, type 0x04: replacement signal graphics. Thanks to Purno for supplying data to test
with.
18 years ago
Darkvater e3280971b1 (svn r4527) - Feature [NewGRF]: Add support for specifying parameters to GRF files. Usage: "mygrf = 1". You can pass up to 128 parameters, each one seperated by a comma or a space-character. Big thanks to peter1138 for the inspiration and examples. 18 years ago
Darkvater 12770adba6 (svn r4439) - NewGRF: Add support for Action 0x10. This also required an extra pre-stage (before initialize and activation) to scan the GRF file for GOTO labels. Big thanks for peter1138 for the guidance and answers, as well as parts of the code. 18 years ago
peter1138 5e345e0e7f (svn r4352) - NewGRF Codechange: dynamically allocate the memory used to store custom station data. This saves us approximately 40KB per GRF file, if there are no stations defined. 19 years ago
tron 2956b119b2 (svn r3311) Remove the unnecessary global variable _grffile_count: It's just the scroll count of a list and furthermore only used in one file 19 years ago
peter1138 ff8223150a (svn r3167) - NewGRF: Start moving custom station code to separate files.
Rewrite handling of station classes.
          Allow for more than 8 station tile layouts.
          Start of code to unload custom stations.
19 years ago
tron 2cc2154ad2 (svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
19 years ago
peter1138 e380abec97 (svn r2970) - Newgrf: Allocate spritegroups dynamically; this allows a cargo ID to reference the previous definition of the same cargo ID, instead of causing loops. 19 years ago
tron 1637df1788 (svn r2871) -Feature/Fix: Per GRF parameter lists 19 years ago
tron 52c859cbe8 (svn r2868) Change the way NewGRFs are loaded: The loading process i no longer bolted onto the normal graphics loading.
This has two major advantages:
- Removal of a maze of global variables and distinction of cases from the sprite loading routines, which weren't directly related to the loading process in the first place
- NewGRF actions no longer occupy sprite slots - for example when using DBSetXL this saves about 2000 slots! (you could regard this as a bug fix)
If i didn't make a major mistake this change should have no negative effect on NewGRF support, please test!
19 years ago
tron a227065ab7 (svn r2701) Insert Id tags into all source files 19 years ago
tron 4bf173e9c1 (svn r1981) Typedef some structs and enums 20 years ago
pasky 989fd10d06 (svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly. 20 years ago
dominik 8d91459f37 (svn r665) code fixes for newgrf.c/newgrf.h 20 years ago
dominik 31184f974e (svn r663) [newgrf] sorry, forgot newgrf.h 20 years ago