|
|
@ -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).
|
|
|
// 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) |
|
|
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 |
|
|
else |
|
|
{ |
|
|
{ |
|
|
|