added missing override

This commit is contained in:
Zeno Rogue 2023-04-11 16:43:34 +02:00
parent 2a05642198
commit 2576918b8a
4 changed files with 7 additions and 7 deletions

View File

@ -660,7 +660,7 @@ struct hrmap_hat : hrmap {
throw hr_exception("not in hats");
}
void find_cell_connection(cell *c, int d) {
void find_cell_connection(cell *c, int d) override {
int id = hat_id(c);
indenter ind(2);
for(auto& ru: rules_base) {

View File

@ -634,8 +634,8 @@ struct emb_sphere_in_low : emb_actual {
return map_relative_push(logical_to_actual(i)) * zpush(-1);
}
hyperpoint actual_to_intermediate(hyperpoint a) override { return actual_to_logical(a); }
ld center_z() { return 1; }
transmatrix map_relative_push(hyperpoint a) {
ld center_z() override { return 1; }
transmatrix map_relative_push(hyperpoint a) override {
ld z = hdist0(a);
geom3::light_flip(true);
auto h1 = normalize(a);
@ -737,7 +737,7 @@ struct emb_euc_in_product : emb_euclid_noniso {
return hyperpoint(bx, by, bz, 1);
}
transmatrix get_lsti() override { return cspin90(2, 1); }
transmatrix intermediate_to_actual_translation(hyperpoint i) {
transmatrix intermediate_to_actual_translation(hyperpoint i) override {
return zpush(i[2]) * xpush(i[0]) * ypush(i[1]);
}
};
@ -869,7 +869,7 @@ struct emb_euc_cylinder_sl2 : emb_euc_cylinder_twisted {
struct emb_euc_in_sph : emb_euclid_noniso {
bool is_euc_in_sph() override { return true; }
ld center_z() override { return 1; }
virtual ld height_limit(ld sign) { return sign < 0 ? 0 : 90._deg; }
virtual ld height_limit(ld sign) override { return sign < 0 ? 0 : 90._deg; }
hyperpoint actual_to_intermediate(hyperpoint a) override {
ld tx = hypot(a[0], a[2]);
ld ty = hypot(a[1], a[3]);

View File

@ -205,7 +205,7 @@ void prepare_nilform() {
struct nilmodel : model {
hyperpoint transform(hyperpoint h) override { return nilize(h).second; }
void process_triangle(vector<hyperpoint>& hys, vector<hyperpoint>& tot, bool textured, object *co) {
void process_triangle(vector<hyperpoint>& hys, vector<hyperpoint>& tot, bool textured, object *co) override {
auto n0 = nilize(hys[0]).first;
auto n1 = nilize(hys[1]).first;
auto n2 = nilize(hys[2]).first;

View File

@ -76,7 +76,7 @@ struct citymodel : model {
return h;
}
void postprocess() {
void postprocess() override {
println(hlog, "low = ", low);
println(hlog, "high = ", high);
}