summaryrefslogtreecommitdiff
path: root/src/newgrf.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
commit144035bf5cb747fd5ffd2c41ae713f66ca79fe62 (patch)
tree43097ea88db1a77b66a4f87c662fe744ac9a258d /src/newgrf.cpp
parenta61f0d90494b39249135314cc81d74776b38a3e6 (diff)
downloadopenttd-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/newgrf.cpp')
-rw-r--r--src/newgrf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 28ba4c4c0..6d9beca75 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2045,7 +2045,7 @@ static void NewSpriteSet(byte *buf, int len)
);
for (uint16 i = 0; i < num_sets * num_ents; i++) {
- LoadNextSprite(_cur_spriteid++, _file_index);
+ LoadNextSprite(_cur_spriteid++, _file_index, _nfo_line);
_nfo_line++;
}
}
@@ -2960,7 +2960,7 @@ static void GraphicsNew(byte *buf, int len)
}
for (; num > 0; num--) {
- LoadNextSprite(replace == 0 ? _cur_spriteid++ : replace++, _file_index);
+ LoadNextSprite(replace == 0 ? _cur_spriteid++ : replace++, _file_index, _nfo_line);
_nfo_line++;
}
}
@@ -3358,7 +3358,7 @@ static void SpriteReplace(byte *buf, int len)
);
for (uint j = 0; j < num_sprites; j++) {
- LoadNextSprite(first_sprite + j, _file_index); // XXX
+ LoadNextSprite(first_sprite + j, _file_index, _nfo_line); // XXX
_nfo_line++;
}
}
@@ -4081,7 +4081,7 @@ static void LoadFontGlyph(byte *buf, int len)
for (uint c = 0; c < num_char; c++) {
SetUnicodeGlyph(size, base_char + c, _cur_spriteid);
- LoadNextSprite(_cur_spriteid++, _file_index);
+ LoadNextSprite(_cur_spriteid++, _file_index, _nfo_line);
_nfo_line++;
}
}