mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-25 16:07:10 +00:00
reg3:: fix_stretch now can be disabled to make older recordings work
This commit is contained in:
1 parent
c69bed4d12
commit
2dccf0d3ab
1 file changed
+5
-2
@@ -79,13 +79,16 @@ EX void make_vertices_only(vector<hyperpoint>& vo, const vector<vector<hyperpoin
|
||||
}
|
||||
EX }
|
||||
|
||||
// you may need to disable this to revert to old behavior (e.g., to make old recordings work)
|
||||
EX bool fix_stretch = true;
|
||||
|
||||
transmatrix sfix_rgpushxto0(hyperpoint h) {
|
||||
if(stretch::applicable() && !fake::in()) return stretch::translate(h);
|
||||
if(fix_stretch && stretch::applicable() && !fake::in()) return stretch::translate(h);
|
||||
return rgpushxto0(h);
|
||||
}
|
||||
|
||||
transmatrix sfix_gpushxto0(hyperpoint h) {
|
||||
if(stretch::applicable() && !fake::in()) return stretch::itranslate(h);
|
||||
if(fix_stretch && stretch::applicable() && !fake::in()) return stretch::itranslate(h);
|
||||
return gpushxto0(h);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user