Revert "fixed CollisionData export."

This reverts commit fe02190604.
This commit is contained in:
Christoph Oelckers 2023-10-03 13:36:19 +02:00
parent b068a19ed9
commit 09754467ee
3 changed files with 4 additions and 8 deletions

View file

@ -439,11 +439,8 @@ void InitThingdef()
}
);
auto collstruct = NewStruct("CollisionData", nullptr, true);
collstruct->Size = sizeof(CollisionBase);
collstruct->Align = alignof(CollisionBase);
auto sidestruct = NewStruct("tspritetype", nullptr, true);
auto sidestruct = NewStruct("TSprite", nullptr, true);
sidestruct->Size = sizeof(tspritetype);
sidestruct->Align = alignof(tspritetype);
// This may not be serialized

View file

@ -1041,8 +1041,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(DCoreActor, spritetexture, CoreActor_spritetexture
DEFINE_FIELD_X(CollisionData, CollisionBase, type)
DEFINE_FIELD_X(CollisionData, CollisionBase, exbits)
walltype* collision_getwall(CollisionBase* coll)
{

View file

@ -175,8 +175,9 @@ struct SummaryInfo native
// this only allows function getters to enable validation on the target.
struct CollisionData
{
native readonly int type;
native readonly int exbits;
int type;
int exbits;
voidptr hit; // do not access!
native walltype hitWall();
native sectortype hitSector();
native CoreActor hitActor();