equal
deleted
inserted
replaced
121 byte type; |
121 byte type; |
122 |
122 |
123 DEBUG(sprite, 9, "Load sprite %d", id); |
123 DEBUG(sprite, 9, "Load sprite %d", id); |
124 |
124 |
125 if (!SpriteExists(id)) { |
125 if (!SpriteExists(id)) { |
126 error( |
126 DEBUG(sprite, 1, "Tried to load non-existing sprite #%d. Probable cause: Wrong/missing NewGRFs", id); |
127 "Tried to load non-existing sprite #%d.\n" |
127 |
128 "Probable cause: Wrong/missing NewGRFs", |
128 /* SPR_IMG_QUERY is a BIG FAT RED ? */ |
129 id |
129 id = SPR_IMG_QUERY; |
130 ); |
130 sc = GetSpriteCache(SPR_IMG_QUERY); |
131 } |
131 } |
132 |
132 |
133 FioSeekToFile(sc->file_pos); |
133 FioSeekToFile(sc->file_pos); |
134 |
134 |
135 num = FioReadWord(); |
135 num = FioReadWord(); |