(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.

This commit is contained in:
2006-04-11 10:05:52 +00:00
parent d38964e49a
commit 5e345e0e7f
2 changed files with 18 additions and 5 deletions

View File

@@ -34,7 +34,8 @@ struct GRFFile {
int spritegroups_count;
SpriteGroup **spritegroups;
StationSpec stations[256];
uint num_stations;
StationSpec *stations;
uint32 param[0x80];
uint param_end; /// one more than the highest set parameter