testqbsp: fix textures not loading in tests
This commit is contained in:
parent
97692738c4
commit
133ee77fc5
|
|
@ -148,6 +148,7 @@ struct mapdata_t
|
|||
|
||||
// misc
|
||||
int start_spots = 0;
|
||||
bool wadlist_tried_loading = false;
|
||||
|
||||
// helpers
|
||||
const std::string &miptexTextureName(int mt) const { return miptex.at(mt).name; }
|
||||
|
|
|
|||
|
|
@ -1041,14 +1041,12 @@ static void CreateHulls(void)
|
|||
}
|
||||
}
|
||||
|
||||
static bool wadlist_tried_loading = false;
|
||||
|
||||
void EnsureTexturesLoaded()
|
||||
{
|
||||
if (wadlist_tried_loading)
|
||||
if (map.wadlist_tried_loading)
|
||||
return;
|
||||
|
||||
wadlist_tried_loading = true;
|
||||
map.wadlist_tried_loading = true;
|
||||
|
||||
const char *wadstring = ValueForKey(map.world_entity(), "_wad");
|
||||
if (!wadstring[0])
|
||||
|
|
|
|||
Loading…
Reference in New Issue