summaryrefslogtreecommitdiff
path: root/src/spritecache.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-14 14:31:48 +0000
committertruelight <truelight@openttd.org>2007-06-14 14:31:48 +0000
commit5d55a9435b604c861b91c0bb64f4202a9006f384 (patch)
tree43097ea88db1a77b66a4f87c662fe744ac9a258d /src/spritecache.cpp
parent083504c12e042fbc0b29ab881237d45cf434071d (diff)
downloadopenttd-5d55a9435b604c861b91c0bb64f4202a9006f384.tar.xz
(svn r10157) -Fix: use as indentified for PNGs, the place of the image as it was in the grf, not the internal SpriteID
Diffstat (limited to 'src/spritecache.cpp')
-rw-r--r--src/spritecache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index e9c4e15dd..135c7d834 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -241,7 +241,7 @@ static void* ReadSprite(SpriteCache *sc, SpriteID id, bool real_sprite)
}
-bool LoadNextSprite(int load_index, byte file_index)
+bool LoadNextSprite(int load_index, byte file_index, uint file_sprite_id)
{
SpriteCache *sc;
uint32 file_pos = FioGetPos() | (file_index << 24);
@@ -256,7 +256,7 @@ bool LoadNextSprite(int load_index, byte file_index)
sc->file_pos = file_pos;
sc->ptr = NULL;
sc->lru = 0;
- sc->id = load_index;
+ sc->id = file_sprite_id;
const char *fio_grf_name = FioGetFilename();
const char *t = strrchr(fio_grf_name, PATHSEPCHAR);