| 682 | |
| 683 | |
| 684 | void DupSprite(SpriteID old_spr, SpriteID new_spr) |
| 685 | { |
| 686 | SpriteCache *scnew = AllocateSpriteCache(new_spr); // may reallocate: so put it first |
| 687 | SpriteCache *scold = GetSpriteCache(old_spr); |
| 688 | |
| 689 | scnew->file = scold->file; |
| 690 | scnew->file_pos = scold->file_pos; |
| 691 | scnew->ClearSpriteData(); |
| 692 | scnew->id = scold->id; |
| 693 | scnew->type = scold->type; |
| 694 | scnew->warned = false; |
| 695 | scnew->control_flags = scold->control_flags; |
| 696 | } |
| 697 | |
| 698 | /** |
| 699 | * Delete entries from the sprite cache to remove the requested number of bytes. |
no test coverage detected