equal
deleted
inserted
replaced
183 |
183 |
184 num = (type & 0x02) ? width * height : num - 8; |
184 num = (type & 0x02) ? width * height : num - 8; |
185 sprite = AllocSprite(sizeof(*sprite) + num); |
185 sprite = AllocSprite(sizeof(*sprite) + num); |
186 _sprite_ptr[id] = sprite; |
186 _sprite_ptr[id] = sprite; |
187 sprite->info = type; |
187 sprite->info = type; |
188 sprite->height = (id != 142) ? height : 10; |
188 sprite->height = (id != 142) ? height : 10; // Compensate for a TTD bug |
189 sprite->width = width; |
189 sprite->width = width; |
190 sprite->x_offs = FioReadWord(); |
190 sprite->x_offs = FioReadWord(); |
191 sprite->y_offs = FioReadWord(); |
191 sprite->y_offs = FioReadWord(); |
192 |
192 |
193 dest = sprite->data; |
193 dest = sprite->data; |