- fixed incorrect sector in a few sprites of World Tour E5L1.

This commit is contained in:
Christoph Oelckers 2023-01-14 13:18:53 +01:00
parent 59820f9fed
commit 6c3d03cd48
4 changed files with 20 additions and 0 deletions

View file

@ -103,6 +103,17 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetSpriteLotag)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetSpriteSector)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
PARAM_UINT(sprite);
PARAM_INT(sect);
if (sprite < self->sprites->sprites.Size())
self->sprites->sprites[sprite].sectp = &sector[sect];
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, ChangeSpriteFlags)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);