diff options
author | truelight <truelight@openttd.org> | 2007-06-14 14:31:48 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-14 14:31:48 +0000 |
commit | 144035bf5cb747fd5ffd2c41ae713f66ca79fe62 (patch) | |
tree | 43097ea88db1a77b66a4f87c662fe744ac9a258d /src/spritecache.cpp | |
parent | a61f0d90494b39249135314cc81d74776b38a3e6 (diff) | |
download | openttd-144035bf5cb747fd5ffd2c41ae713f66ca79fe62.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.cpp | 4 |
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); |