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:
parent
7ea8c765d9
commit
450aa28d67
@ -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);
|
||||||
|
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user