1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-04 14:30:35 +00:00

gp:: added -gph (better -gp)

This commit is contained in:
Zeno Rogue 2022-01-08 19:20:53 +01:00
parent 7ea8c765d9
commit 450aa28d67
2 changed files with 7 additions and 1 deletions

View File

@ -1252,6 +1252,12 @@ int read_geom_args() {
shift(); gp::param.second = argi(); shift(); gp::param.second = argi();
set_variation(eVariation::goldberg); set_variation(eVariation::goldberg);
} }
else if(argis("-gph")) {
PHASEFROM(2);
shift(); int x = argi();
shift(); int y = argi();
gp::whirl_set({x, y});
}
else if(argis("-unrectified")) { else if(argis("-unrectified")) {
PHASEFROM(2); PHASEFROM(2);
set_variation(eVariation::unrectified); set_variation(eVariation::unrectified);

View File

@ -761,7 +761,7 @@ EX namespace gp {
return eVariation::goldberg; return eVariation::goldberg;
} }
void whirl_set(loc xy) { EX void whirl_set(loc xy) {
xy = internal_representation(xy); xy = internal_representation(xy);
if(xy.second && xy.second != xy.first && nonorientable) { if(xy.second && xy.second != xy.first && nonorientable) {
addMessage(XLAT("This does not work in non-orientable geometries")); addMessage(XLAT("This does not work in non-orientable geometries"));