Merge branch 'brushbsp' of https://github.com/ericwa/ericw-tools into brushbsp
This commit is contained in:
commit
2fe8ef2182
|
|
@ -713,7 +713,7 @@ public:
|
||||||
// copy assignment
|
// copy assignment
|
||||||
setting_container &operator=(const setting_container &other) = delete;
|
setting_container &operator=(const setting_container &other) = delete;
|
||||||
|
|
||||||
void reset();
|
virtual void reset();
|
||||||
|
|
||||||
void copyFrom(const setting_container &other);
|
void copyFrom(const setting_container &other);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -362,6 +362,7 @@ public:
|
||||||
}
|
}
|
||||||
void initialize(int argc, const char **argv) override;
|
void initialize(int argc, const char **argv) override;
|
||||||
void postinitialize(int argc, const char **argv) override;
|
void postinitialize(int argc, const char **argv) override;
|
||||||
|
void reset() override;
|
||||||
|
|
||||||
bool fVerbose = true;
|
bool fVerbose = true;
|
||||||
bool fAllverbose = false;
|
bool fAllverbose = false;
|
||||||
|
|
|
||||||
14
qbsp/qbsp.cc
14
qbsp/qbsp.cc
|
|
@ -289,6 +289,20 @@ void qbsp_settings::postinitialize(int argc, const char **argv)
|
||||||
|
|
||||||
common_settings::postinitialize(argc, argv);
|
common_settings::postinitialize(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void qbsp_settings::reset() {
|
||||||
|
common_settings::reset();
|
||||||
|
|
||||||
|
fVerbose = false;
|
||||||
|
fAllverbose = false;
|
||||||
|
fNoverbose = false;
|
||||||
|
target_version = nullptr;
|
||||||
|
target_game = nullptr;
|
||||||
|
map_path = fs::path();
|
||||||
|
bsp_path = fs::path();
|
||||||
|
loaded_texture_defs.clear();
|
||||||
|
loaded_entity_defs.clear();
|
||||||
|
}
|
||||||
}; // namespace settings
|
}; // namespace settings
|
||||||
|
|
||||||
settings::qbsp_settings qbsp_options;
|
settings::qbsp_settings qbsp_options;
|
||||||
|
|
|
||||||
|
|
@ -80,3 +80,8 @@
|
||||||
( 48 -32 112 ) ( 48 -32 113 ) ( 48 -31 112 ) +0fan [ 0 1 0 16 ] [ 0 0 -1 0 ] 0 1 1
|
( 48 -32 112 ) ( 48 -32 113 ) ( 48 -31 112 ) +0fan [ 0 1 0 16 ] [ 0 0 -1 0 ] 0 1 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// entity 3
|
||||||
|
{
|
||||||
|
"classname" "light"
|
||||||
|
"origin" "-24 -48 152"
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -652,6 +652,13 @@ TEST_CASE("simple_worldspawn_detail", "[testmaps_q1]")
|
||||||
// 5 faces for the "button"
|
// 5 faces for the "button"
|
||||||
// 9 faces for the room
|
// 9 faces for the room
|
||||||
REQUIRE(bsp.dfaces.size() == 14);
|
REQUIRE(bsp.dfaces.size() == 14);
|
||||||
|
|
||||||
|
// 6 for the box room
|
||||||
|
// 5 for the "button"
|
||||||
|
CHECK(bsp.dnodes.size() == 11);
|
||||||
|
|
||||||
|
// this is how many we get with ericw-tools-v0.18.1-32-g6660c5f-win64
|
||||||
|
CHECK(bsp.dclipnodes.size() <= 22);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("simple_worldspawn_detail_illusionary", "[testmaps_q1]")
|
TEST_CASE("simple_worldspawn_detail_illusionary", "[testmaps_q1]")
|
||||||
|
|
@ -1105,6 +1112,10 @@ TEST_CASE("q1_cube", "[testmaps_q1]")
|
||||||
// model bounds are shrunk by 1 unit on each side for some reason
|
// model bounds are shrunk by 1 unit on each side for some reason
|
||||||
CHECK(cube_bounds.grow(-1).mins() == bsp.dmodels[0].mins);
|
CHECK(cube_bounds.grow(-1).mins() == bsp.dmodels[0].mins);
|
||||||
CHECK(cube_bounds.grow(-1).maxs() == bsp.dmodels[0].maxs);
|
CHECK(cube_bounds.grow(-1).maxs() == bsp.dmodels[0].maxs);
|
||||||
|
|
||||||
|
CHECK(6 == bsp.dnodes.size());
|
||||||
|
|
||||||
|
CHECK(12 == bsp.dclipnodes.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue