diff --git a/ReflexToQ3/includes/brushdef.cpp b/ReflexToQ3/includes/brushdef.cpp index efcf459..ec2ba61 100644 --- a/ReflexToQ3/includes/brushdef.cpp +++ b/ReflexToQ3/includes/brushdef.cpp @@ -7,6 +7,17 @@ #define Z 2 using namespace std; + +std::string texdef_gtk(const TPlanePoints & b) { + std::stringstream ss; + ss << " " << b.hshift + << " " << b.vshift + << " " << b.rotation + << " " << b.hscale + << " " << b.vscale; + return " 0 0 0 0.500000 0.500000"; +} + // e.g GTK Radiant or older level editors. void brushdef_gtk(std::stringstream &x, const vector &y) { if(y.size()) @@ -19,7 +30,7 @@ void brushdef_gtk(std::stringstream &x, const vector &y) { x << "( " << krPlane.m_C[X] << " " << krPlane.m_C[Z] << " " << krPlane.m_C[Y] << " ) "; if(krPlane.m_material.length()) { - x << krPlane.m_material << " 0 0 0 0.500000 0.500000" << std::endl; + x << krPlane.m_material << texdef_gtk(krPlane) << std::endl; } else { diff --git a/ReflexToQ3/includes/brushdef.hpp b/ReflexToQ3/includes/brushdef.hpp index 1345ec4..0417dd2 100644 --- a/ReflexToQ3/includes/brushdef.hpp +++ b/ReflexToQ3/includes/brushdef.hpp @@ -7,6 +7,8 @@ #include "worldspawn.h" #include "planes.h" +std::string texdef_gtk(const TPlanePoints&); + std::string texdef_net(const TPlanePoints&); void brushdef_gtk(std::stringstream&, const std::vector&);