1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-31 01:37:57 +00:00

rogueviz::objmodels:: availability checking

This commit is contained in:
Zeno Rogue
2021-03-30 23:00:51 +02:00
parent 6a2553ced9
commit cf1cd09f81
2 changed files with 13 additions and 2 deletions

View File

@@ -14,6 +14,13 @@ char peek(fhstream& fs) {
return g;
}
bool model::available() {
if(av_checked) return is_available;
av_checked = true;
is_available = false;
return false;
}
void model::load_obj(model_type& objects) {
fhstream fs(path+fname, "rt");