summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-01 16:52:43 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-01 16:52:43 +0000
commit8a4a39d38c2de08a0190cc143f79882fc5e950ab (patch)
tree4291db7cc5eed4a94cd14a9f279378200700bdfe
parente3b84cc7f5ef76fca65b82d913fc4a4507bb240c (diff)
downloadopenttd-8a4a39d38c2de08a0190cc143f79882fc5e950ab.tar.xz
(svn r4650) - NewGRF: use the correct type for _cur_spriteid
-rw-r--r--newgrf.c2
-rw-r--r--newgrf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index 6d0735bb3..9b54e95ef 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -43,7 +43,7 @@ SpriteID _signal_base = 0;
static GRFFile *_cur_grffile;
GRFFile *_first_grffile;
GRFConfig *_first_grfconfig;
-static int _cur_spriteid;
+static SpriteID _cur_spriteid;
static int _cur_stage;
static uint32 _nfo_line;
diff --git a/newgrf.h b/newgrf.h
index 5bf2359fc..ec1830307 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -33,7 +33,7 @@ typedef struct GRFFile {
* half-filled wagon etc. Each spriteset contains eight sprites (one
* per direction) or four sprites if the vehicle is symmetric. */
- int spriteset_start;
+ SpriteID spriteset_start;
int spriteset_numsets;
int spriteset_numents;
int spriteset_feature;