fix build
This commit is contained in:
parent
f02bbca0c7
commit
07e7179c74
|
|
@ -1032,7 +1032,8 @@ static void DecompileEntity(
|
|||
} else if (areaportal_brush && keyValue.first == "style") {
|
||||
continue;
|
||||
} else if (modelNum > 0 && keyValue.first == "origin") {
|
||||
parser_t parser(keyValue.second.data());
|
||||
auto &value = keyValue.second;
|
||||
parser_t parser(value.data(), value.data() + value.size());
|
||||
qvec3d vec;
|
||||
parser.parse_token();
|
||||
vec[0] = stof(parser.token);
|
||||
|
|
|
|||
|
|
@ -1404,7 +1404,7 @@ bool ParseLightsFile(const std::filesystem::path &fname)
|
|||
while (!f.eof()) {
|
||||
std::getline(f, buf);
|
||||
|
||||
parser_t parser(buf.c_str());
|
||||
parser_t parser(buf.data(), buf.data() + buf.size());
|
||||
|
||||
if (!parser.parse_token())
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
#include <qbsp/qbsp.hh>
|
||||
#include <qbsp/map.hh>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
// FIXME: Clear global data (planes, etc) between each test
|
||||
|
||||
static face_t *Brush_FirstFaceWithTextureName(brush_t *brush, const char *texname)
|
||||
|
|
@ -30,7 +32,7 @@ static mapentity_t LoadMap(const char *map)
|
|||
options.target_version = &bspver_q1;
|
||||
options.target_game = options.target_version->game;
|
||||
|
||||
parser_t parser(map);
|
||||
parser_t parser(map, map + strlen(map));
|
||||
|
||||
mapentity_t worldspawn;
|
||||
// FIXME: adds the brush to the global map...
|
||||
|
|
|
|||
Loading…
Reference in New Issue