- Set inittype on actSpawnDude()

copied from NBlood commit 3fefdfa85bb86b5e8e951e886a6d13c769666215
This commit is contained in:
Christoph Oelckers 2022-05-06 01:10:22 +02:00
parent ca423e15f0
commit 1e356741f9

View file

@ -6262,6 +6262,8 @@ DBloodActor* actSpawnDude(DBloodActor* source, int nType, int a3, int a4)
y = source->spr.pos.Y + mulscale30r(Sin(angle), a3);
}
spawned->spr.type = nType;
if (!VanillaMode())
spawned->spr.inittype = nType;
spawned->spr.ang = angle;
vec3_t pos = { x, y, z };
SetActor(spawned, &pos);