rogueviz:: fixed missing virtual destructor in model

This commit is contained in:
Zeno Rogue 2024-04-28 02:13:42 +02:00
parent 443be1acda
commit 0a16e53561
2 changed files with 12 additions and 4 deletions

View File

@ -342,6 +342,8 @@ namespace objmodels {
virtual void process_triangle(vector<hyperpoint>& hys, vector<hyperpoint>& tot, bool textured, object *co);
bool available();
virtual ~model() {}
};
void add_model_settings();

View File

@ -314,6 +314,12 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
param_b(snow_not_player, "snow_not_player");
})
#if CAP_SOLV
#define IF_SOLV(x) x
#else
#define IF_SOLV(x)
#endif
#if CAP_RVSLIDES
+ addHook_rvslides(161, [] (string s, vector<tour::slide>& v) {
if(s != "noniso") return;
@ -381,16 +387,16 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
set_geometry(gRotSpace);
snow_lambda = 5;
});
#if CAP_SOLV
snow_slide(v, "Solv", "Solv geometry. Like the non-isotropic hyperbolic geometry but where the horizontal and vertical curvatures work in the other way.", [] {
IF_SOLV(snow_slide(v, "Solv", "Solv geometry. Like the non-isotropic hyperbolic geometry but where the horizontal and vertical curvatures work in the other way.", [] {
set_geometry(gSol);
// tour::slide_backup(snow_shape, 2);
snow_lambda = 3;
});
#endif
});)
})
#endif
+ 0;
#undef IF_SOLV
}
}