mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
mstretch now works in rot spaces including SL2
This commit is contained in:
1 parent
e87da576e4
commit
b5924ccc5c
3 files changed
+116
-43
No files matched your search
@@ -1554,8 +1554,15 @@ EX void optimizeview() {
|
||||
if(subscreens::split(optimizeview)) return;
|
||||
if(dual::split(optimizeview)) return;
|
||||
|
||||
cell *c = centerover;
|
||||
transmatrix iView = inverse(View);
|
||||
virtualRebase(centerover, iView);
|
||||
if(c != centerover && (sphere || sl3)) {
|
||||
transmatrix T = currentmap->relative_matrix(centerover, c, C0);
|
||||
T = stretch::itranslate(tC0(T)) * T;
|
||||
stretch::mstretch_matrix = T * stretch::mstretch_matrix;
|
||||
}
|
||||
|
||||
View = inverse(iView);
|
||||
fixmatrix(View);
|
||||
|
||||
@@ -1594,6 +1601,7 @@ EX void resetview() {
|
||||
DEBBI(DF_GRAPH, ("reset view"));
|
||||
// EUCLIDEAN
|
||||
NLP = Id;
|
||||
stretch::mstretch_matrix = Id;
|
||||
auto lView = View;
|
||||
if(cwt.at) {
|
||||
centerover = cwt.at;
|
||||
|
||||
Reference in new issue
Block a user