diff options
Diffstat (limited to 'spritecache.c')
-rw-r--r-- | spritecache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spritecache.c b/spritecache.c index 4604f7602..a27444ce1 100644 --- a/spritecache.c +++ b/spritecache.c @@ -45,7 +45,9 @@ static bool ReadSpriteHeaderSkipData(void) type = FioReadByte(); if (type == 0xFF) { FioSkipBytes(num); - return true; + /* Some NewGRF files have "empty" pseudo-sprites which are 1 + * byte long. Catch these so the sprites won't be displayed. */ + return num != 1; } FioSkipBytes(7); |