summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-15 11:39:13 +0000
committertron <tron@openttd.org>2005-08-15 11:39:13 +0000
commit52c859cbe8f64cfe452b39d029701c4aa485b919 (patch)
treea9af328126a18cca6a3ee91e6890c036f97fd7f3 /newgrf.h
parentd057d8b366795e4fe82e6f63d985d35e6e363f64 (diff)
downloadopenttd-52c859cbe8f64cfe452b39d029701c4aa485b919.tar.xz
(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!
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/newgrf.h b/newgrf.h
index 232223f6e..b13573de9 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -39,9 +39,8 @@ struct GRFFile {
extern int _grffile_count;
extern GRFFile *_first_grffile;
-void InitNewGRFFile(const char *filename, int sprite_offset);
-void DecodeSpecialSprite(const char *filename, int num, int spriteid, int stage);
+void LoadNewGRF(uint load_index, uint file_index);
#endif /* NEWGRF_H */