- elininated the actSpawnThing wrapper.

This commit is contained in:
Christoph Oelckers 2022-09-26 22:51:36 +02:00
parent f7fe24b19e
commit 6c98a07a60
3 changed files with 3 additions and 8 deletions

View file

@ -236,11 +236,6 @@ DBloodActor* actSpawnDude(DBloodActor* pSource, int nType, double dist);
DBloodActor * actSpawnSprite(DBloodActor *pSource, int nStat);
DBloodActor* actSpawnThing(sectortype* pSector, const DVector3& pos, int nThingType);
inline DBloodActor* actSpawnThing(sectortype* pSector, int x, int y, int z, int nThingType)
{
return actSpawnThing(pSector, DVector3(x * inttoworld, y * inttoworld, z * zinttoworld), nThingType);
}
inline DBloodActor* actFireThing(DBloodActor* actor, double xyoff, double zoff, double zvel, int thingType, double nSpeed);
inline DBloodActor* actFireThing(DBloodActor* actor, int xyoff_, int zoff_, int zvel_, int thingType, int nSpeed_)
{

View file

@ -366,7 +366,7 @@ void GibThing(DBloodActor* actor, GIBTHING* pGThing, DVector3* pPos, DVector3* p
getzsofslopeptr(pSector, gPos, &ceilZ, &floorZ);
double dz1 = floorZ - gPos.Z;
double dz2 = gPos.Z - ceilZ;
auto gibactor = actSpawnThing(pSector, gPos.X * worldtoint, gPos.Y * worldtoint, gPos.Z * zworldtoint, pGThing->type);
auto gibactor = actSpawnThing(pSector, gPos, pGThing->type);
if (!gibactor) return;
if (pGThing->Kills > -1)

View file

@ -2498,9 +2498,9 @@ void ActivateGenerator(DBloodActor* actor)
switch (actor->spr.type) {
case kGenDripWater:
case kGenDripBlood: {
int top, bottom;
double top, bottom;
GetActorExtents(actor, &top, &bottom);
actSpawnThing(actor->sector(), actor->int_pos().X, actor->int_pos().Y, bottom, (actor->spr.type == kGenDripWater) ? kThingDripWater : kThingDripBlood);
actSpawnThing(actor->sector(), DVector3(actor->spr.pos.XY(), bottom), (actor->spr.type == kGenDripWater) ? kThingDripWater : kThingDripBlood);
break;
}
case kGenSound: