mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 07:31:03 +00:00
- removed HitInfoBase::setFromEngine.
This value format no longer exists anywhere.
This commit is contained in:
parent
cf9d733994
commit
c4d23188d5
1 changed files with 0 additions and 19 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue