mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 07:06:01 +00:00
(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.
This commit is contained in:
parent
66bbf336c6
commit
6b82f1dc06
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user