This is compatible with sprites created with mksprite with the old syntax. When switching to the new syntax, mksprite compresses sprites by default so they're not compatible anymore. Instead, users get random crashes.
We could try and add an assertion here, maybe in __sprite_upgrade().
Some examples on trunk still use the old-school sprite loading instead of
sprite_load
:This is compatible with sprites created with mksprite with the old syntax. When switching to the new syntax, mksprite compresses sprites by default so they're not compatible anymore. Instead, users get random crashes.
We could try and add an assertion here, maybe in __sprite_upgrade().