mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 18:30:34 +00:00
rogueviz:: fixed missing virtual destructor in model
This commit is contained in:
parent
443be1acda
commit
0a16e53561
@ -342,6 +342,8 @@ namespace objmodels {
|
|||||||
virtual void process_triangle(vector<hyperpoint>& hys, vector<hyperpoint>& tot, bool textured, object *co);
|
virtual void process_triangle(vector<hyperpoint>& hys, vector<hyperpoint>& tot, bool textured, object *co);
|
||||||
|
|
||||||
bool available();
|
bool available();
|
||||||
|
|
||||||
|
virtual ~model() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
void add_model_settings();
|
void add_model_settings();
|
||||||
|
@ -314,6 +314,12 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
|||||||
param_b(snow_not_player, "snow_not_player");
|
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
|
#if CAP_RVSLIDES
|
||||||
+ addHook_rvslides(161, [] (string s, vector<tour::slide>& v) {
|
+ addHook_rvslides(161, [] (string s, vector<tour::slide>& v) {
|
||||||
if(s != "noniso") return;
|
if(s != "noniso") return;
|
||||||
@ -381,16 +387,16 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
|||||||
set_geometry(gRotSpace);
|
set_geometry(gRotSpace);
|
||||||
snow_lambda = 5;
|
snow_lambda = 5;
|
||||||
});
|
});
|
||||||
#if CAP_SOLV
|
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.", [] {
|
||||||
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);
|
set_geometry(gSol);
|
||||||
// tour::slide_backup(snow_shape, 2);
|
// tour::slide_backup(snow_shape, 2);
|
||||||
snow_lambda = 3;
|
snow_lambda = 3;
|
||||||
});
|
});)
|
||||||
#endif
|
|
||||||
})
|
})
|
||||||
#endif
|
#endif
|
||||||
+ 0;
|
+ 0;
|
||||||
|
|
||||||
|
#undef IF_SOLV
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user