Skip to content

Commit

Permalink
Gloom: Define Doom linedef flags
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent b516a31 commit 75c919b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions doomsday/apps/gloom/gloom/world/map.h
Expand Up @@ -73,8 +73,8 @@ struct Line

struct Plane
{
Vec3d point;
Vec3f normal;
Vec3d point;
Vec3f normal;
String material[2]; // front and back

geo::Plane toGeoPlane() const { return geo::Plane{point, normal}; }
Expand Down
17 changes: 10 additions & 7 deletions doomsday/apps/gloom/gloom/world/mapimport.cpp
Expand Up @@ -69,6 +69,9 @@ DENG2_PIMPL_NOREF(MapImport)
# pragma pack(push, 1)
#endif

static const dint16 LineFlag_UpperTextureUnpegged = 0x0008;
static const dint16 LineFlag_LowerTextureUnpegged = 0x0010;

struct DoomVertex {
dint16 x;
dint16 y;
Expand All @@ -77,9 +80,9 @@ DENG2_PIMPL_NOREF(MapImport)
struct DoomSidedef {
dint16 xOffset;
dint16 yOffset;
char upperTexture[8];
char lowerTexture[8];
char middleTexture[8];
char upperTexture[8];
char lowerTexture[8];
char middleTexture[8];
dint16 sector;
};

Expand All @@ -104,10 +107,10 @@ DENG2_PIMPL_NOREF(MapImport)
} PACKED_STRUCT;

struct DoomSector {
dint16 floorHeight;
dint16 ceilingHeight;
char floorTexture[8];
char ceilingTexture[8];
dint16 floorHeight;
dint16 ceilingHeight;
char floorTexture[8];
char ceilingTexture[8];
duint16 lightLevel;
duint16 type;
duint16 tag;
Expand Down

0 comments on commit 75c919b

Please sign in to comment.