1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

reg3:: fix_stretch now can be disabled to make older recordings work

This commit is contained in:
Zeno Rogue 2023-11-30 12:35:06 +01:00
parent c69bed4d12
commit 2dccf0d3ab

View File

@ -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);
}