summaryrefslogtreecommitdiff
path: root/src/game/world
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-03-16 13:35:33 +0100
committeraura <nw@moneybot.cc>2026-03-16 13:35:33 +0100
commite59a032fb9afac6496acf3fba51a2a329bd0f992 (patch)
tree930bc3bc05e32127153cba12ac1248bc400b860d /src/game/world
parentf1882249843caa8bd931ecb76bb489615e079b10 (diff)
more editor work
Diffstat (limited to 'src/game/world')
-rw-r--r--src/game/world/map.cpp8
-rw-r--r--src/game/world/map.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/src/game/world/map.cpp b/src/game/world/map.cpp
index 5f1f5d7..7b8060b 100644
--- a/src/game/world/map.cpp
+++ b/src/game/world/map.cpp
@@ -380,24 +380,24 @@ void map_gen_skybox( WORLD_MAP* m ) {
VEC3 maxs = m->maxs + VEC3( SKYBOX_OFFSET, SKYBOX_OFFSET, SKYBOX_OFFSET );
m->skybox.walls[0] = {
+ .propid = MAPPROP_SKYBOX,
.start = { mins.x, mins.y, mins.z },
.end = { maxs.x, mins.y, maxs.z - mins.z },
- .propid = MAPPROP_SKYBOX
};
m->skybox.walls[1] = {
+ .propid = MAPPROP_SKYBOX,
.start = { maxs.x, mins.y, mins.z },
.end = { maxs.x, maxs.y, maxs.z - mins.z },
- .propid = MAPPROP_SKYBOX
};
m->skybox.walls[2] = {
+ .propid = MAPPROP_SKYBOX,
.start = { maxs.x, maxs.y, mins.z },
.end = { mins.x, maxs.y, maxs.z - mins.z },
- .propid = MAPPROP_SKYBOX
};
m->skybox.walls[3] = {
+ .propid = MAPPROP_SKYBOX,
.start = { mins.x, maxs.y, mins.z },
.end = { mins.x, mins.y, maxs.z - mins.z },
- .propid = MAPPROP_SKYBOX
};
VEC2 floor[] = {
diff --git a/src/game/world/map.h b/src/game/world/map.h
index 89c467c..8e6444e 100644
--- a/src/game/world/map.h
+++ b/src/game/world/map.h
@@ -39,22 +39,22 @@ struct MAP_PROPREF {
};
struct MAP_POLYGON : public EOBJECT {
+ EPROP( MAP_PROPREF, propid, {}, "prop id" );
EPROP( LIST<MAP_VERTEX>, vertices, {}, "vertices" );
VEC3 mins;
VEC3 maxs;
U8 type;
- EPROP( MAP_PROPREF, propid, {}, "prop id" );
};
struct MAP_WALL : public EOBJECT {
+ EPROP( MAP_PROPREF, propid, {}, "prop id" );
+
EPROP( VEC3, start, {}, "start pos" );
EPROP( VEC3, end, {}, "end pos" );
EPROP( VEC2, uvstart, {}, "uv start offset" );
EPROP( VEC2, uvend, {}, "uv end offset" );
-
- EPROP( MAP_PROPREF, propid, {}, "prop id" );
};
struct MAP_TEXTURE_ENTRY {
@@ -64,10 +64,10 @@ struct MAP_TEXTURE_ENTRY {
};
struct MAP_SPRITE : public EOBJECT {
+ EPROP( GL_TEX2D*, tex, {}, "texture" );
EPROP( VEC3, pos, {}, "position" );
EPROP( VEC2, size, {}, "size" );
EPROP( CLR, clr, {}, "color" );
- EPROP( GL_TEX2D*, tex, {}, "texture" );
};
struct MAP_ENTITY : public EOBJECT {