mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 01:14:52 +00:00
fixed normalize_flat in emb_none -- this fixes centering in multiplayer
This commit is contained in:
parent
838b34762e
commit
6a9ed169eb
@ -398,10 +398,12 @@ struct emb_none : embedding_method {
|
||||
return rgpushxto0(i);
|
||||
}
|
||||
hyperpoint flatten(hyperpoint a) override {
|
||||
if(gproduct) return a / exp(zlevel(a));
|
||||
if(gproduct || GDIM == 2) return a / exp(zlevel(a));
|
||||
return embedding_method::flatten(a);
|
||||
}
|
||||
|
||||
hyperpoint normalize_flat(hyperpoint a) override { return normalize(a); }
|
||||
|
||||
transmatrix base_to_actual(const transmatrix& T) override { return T; }
|
||||
hyperpoint base_to_actual(hyperpoint h) override { return h; }
|
||||
transmatrix actual_to_base(const transmatrix& T) override { return T; }
|
||||
|
Loading…
Reference in New Issue
Block a user