1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

rv:: objmodels:: fixed loading the city model

This commit is contained in:
Zeno Rogue 2022-03-01 08:57:08 +01:00
parent e2b6b6b2eb
commit aaeab82425

View File

@ -95,8 +95,7 @@ void model::load_obj(model_data& md) {
object *co = nullptr; object *co = nullptr;
bool textured = false; bool textured = false;
fs.get<char>(); fs.get<char>();
string oname; string oname = scanline(fs);
scan(fs, oname);
println(hlog, "reading object: ", oname); println(hlog, "reading object: ", oname);
md.objindex.push_back(isize(md.objs)); md.objindex.push_back(isize(md.objs));
hyperpoint ctr = Hypc; hyperpoint ctr = Hypc;