- Duke: fixed ChangeType to also change the actor's base pic.

This commit is contained in:
Christoph Oelckers 2023-04-30 12:00:32 +02:00
parent a69d904192
commit b07a43a9db

View file

@ -152,6 +152,7 @@ public:
// It sucks having to do this but the game heavily depends on being able to swap out the class type and often uses this to manage actor state.
// We'll allow this only for classes that do not add their own data, though.
SetClass(newtype);
spr.setspritetexture(GetDefaultByType(newtype)->spr.spritetexture());
}
}