summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-05-01 20:46:36 +0000
committeryexo <yexo@openttd.org>2011-05-01 20:46:36 +0000
commit6a1eb377aee6b5e85e9095d90e4ce95973a2df47 (patch)
treefff563b9a5076e6001c33f35b3db1c1668d6f8ff /src/newgrf.cpp
parent428044e0335e0ff3cfd2fd3ef86e024e389e5057 (diff)
downloadopenttd-6a1eb377aee6b5e85e9095d90e4ce95973a2df47.tar.xz
(svn r22408) -Cleanup: remove unused variable GRFFile::sprite_offset
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 200505474..4a14381e4 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -7334,12 +7334,11 @@ static void BuildCargoTranslationMap()
}
}
-static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
+static void InitNewGRFFile(const GRFConfig *config)
{
GRFFile *newfile = GetFileByFilename(config->filename);
if (newfile != NULL) {
/* We already loaded it once. */
- newfile->sprite_offset = sprite_offset;
_cur_grffile = newfile;
return;
}
@@ -7347,7 +7346,6 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset)
newfile = CallocT<GRFFile>(1);
newfile->filename = strdup(config->filename);
- newfile->sprite_offset = sprite_offset;
newfile->grfid = config->ident.grfid;
/* Initialise local settings to defaults */
@@ -8304,7 +8302,7 @@ void LoadNewGRF(uint load_index, uint file_index)
continue;
}
- if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid);
+ if (stage == GLS_LABELSCAN) InitNewGRFFile(c);
LoadNewGRFFile(c, slot++, stage);
if (stage == GLS_RESERVE) {
SetBit(c->flags, GCF_RESERVED);