spritecache.c
changeset 2015 9b872f3a0c2b
parent 2014 ccfe4fa81a14
child 2026 567e3bc9af72
equal deleted inserted replaced
2014:ccfe4fa81a14 2015:9b872f3a0c2b
   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;