- removed HitInfoBase::setFromEngine.

This value format no longer exists anywhere.
This commit is contained in:
Christoph Oelckers 2021-12-05 09:43:49 +01:00
parent cf9d733994
commit c4d23188d5

View file

@ -195,14 +195,6 @@ struct CollisionBase
return kHitWall;
}
int setSprite(int num)
{
*this = {};
type = kHitSprite;
hitActor = actorArray[num];
return kHitSprite;
}
int setSprite(DCoreActor* num)
{
*this = {};
@ -217,17 +209,6 @@ struct CollisionBase
type = kHitVoid;
return kHitVoid;
}
// this hack job needs to go. We still need it for the time being.
int setFromEngine(int value)
{
int type = value & kHitTypeMaskSW;
if (type == kHitSector) setSector(value & kHitIndexMask);
else if (type == kHitWall) setWall(value & kHitIndexMask);
else if (type == kHitSprite) setSprite(value & kHitIndexMask);
else setNone();
return type;
}
};
template<class T>