Better VM_DummySprite()

git-svn-id: https://svn.eduke32.com/eduke32@7634 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:53:16 +00:00 committed by Christoph Oelckers
parent 3577d8a032
commit de695f22bc

View file

@ -143,12 +143,11 @@ static FORCE_INLINE int32_t VM_EventCommon__(int const &eventNum, int const &spr
return returnValue;
}
#else
// do not inline
static void VM_DummySprite(void)
{
static uspritetype dummy_sprite;
static actor_t dummy_actor;
static uspritetype dummy_sprite;
static actor_t dummy_actor;
static inline void VM_DummySprite(void)
{
vm.pUSprite = &dummy_sprite;
vm.pActor = &dummy_actor;
vm.pData = &dummy_actor.t_data[0];