summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-01-02 20:00:10 +0000
committerpeter1138 <peter1138@openttd.org>2007-01-02 20:00:10 +0000
commit6b82f1dc06f8f197cd54ea87b167eaf60f276846 (patch)
tree2882561fc288fc7c073a51ffea7ec0522c7584cb /src
parent66bbf336c6af7353ef0aeed58002c46543b30635 (diff)
downloadopenttd-6b82f1dc06f8f197cd54ea87b167eaf60f276846.tar.xz
(svn r7760) -Codechange: Debug messages for newgrf showed the starting sprite, not the current sprite index. Also only output the debug message during activation, when sprites are loaded.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/newgrf.c b/src/newgrf.c
index c2b4e464b..c1ecd359e 100644
--- a/src/newgrf.c
+++ b/src/newgrf.c
@@ -3682,8 +3682,10 @@ void LoadNewGRF(uint load_index, uint file_index)
if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid);
LoadNewGRFFile(c, slot++, stage);
- if (stage == GLS_ACTIVATION) ClearTemporaryNewGRFData();
- DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index);
+ if (stage == GLS_ACTIVATION) {
+ ClearTemporaryNewGRFData();
+ DEBUG(sprite, 2, "Currently %i sprites are loaded", _cur_spriteid);
+ }
}
}