equal
deleted
inserted
replaced
151 static void ReadSprite(SpriteID id, void *buffer) |
151 static void ReadSprite(SpriteID id, void *buffer) |
152 { |
152 { |
153 uint num = _sprite_size[id]; |
153 uint num = _sprite_size[id]; |
154 byte type; |
154 byte type; |
155 byte* dest; |
155 byte* dest; |
|
156 |
|
157 if (_sprite_file_pos[id] == 0) { |
|
158 error( |
|
159 "Tried to load non-existing sprite #%d.\n" |
|
160 "Probable cause: Wrong/missing NewGRFs", |
|
161 id |
|
162 ); |
|
163 } |
156 |
164 |
157 FioSeekToFile(_sprite_file_pos[id]); |
165 FioSeekToFile(_sprite_file_pos[id]); |
158 |
166 |
159 type = FioReadByte(); |
167 type = FioReadByte(); |
160 /* We've decoded special sprites when reading headers. */ |
168 /* We've decoded special sprites when reading headers. */ |