diff --git a/main.cpp b/main.cpp index 062bc13..2debcd4 100644 --- a/main.cpp +++ b/main.cpp @@ -279,9 +279,9 @@ int process_faces(const world_t* world, const TextureList& textures) // Ensure we don't overflow 16-bit short values. Most Quake maps will stay within these bounds so it *should* be fine (for now). if (inVertex.x > -8192 && inVertex.x < 8192 && inVertex.y > -8192 && inVertex.y < 8192 && inVertex.z > -8192 && inVertex.z < 8192) { - outVertex.x = (short)(inVertex.x * WORLDSCALE); - outVertex.y = (short)(inVertex.y * WORLDSCALE); - outVertex.z = (short)(inVertex.z * WORLDSCALE); + outVertex.vx = (short)(inVertex.x * WORLDSCALE); + outVertex.vy = (short)(inVertex.y * WORLDSCALE); + outVertex.vz = (short)(inVertex.z * WORLDSCALE); } else { diff --git a/ps1bsp.h b/ps1bsp.h index 1745db6..c87932a 100644 --- a/ps1bsp.h +++ b/ps1bsp.h @@ -63,7 +63,7 @@ typedef struct // This matches the SVECTOR data type; we can use the extra padding to store some more data. typedef struct { - short x, y, z; + short vx, vy, vz; short pad; } ps1bsp_vertex_t;