1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 01:47:39 +00:00

nilv:: nilwidth option

This commit is contained in:
Zeno Rogue
2020-02-13 11:09:18 +01:00
parent 42f4167a26
commit e133fffd5d
2 changed files with 14 additions and 2 deletions

View File

@@ -831,7 +831,9 @@ EX namespace nilv {
static const mvec mvec_zero = mvec(0, 0, 0);
hyperpoint mvec_to_point(mvec m) { return hpxy3(m[0], m[1], m[2]); }
EX ld nilwidth = 1;
hyperpoint mvec_to_point(mvec m) { return hpxy3(m[0] * nilwidth, m[1] * nilwidth, m[2] * nilwidth * nilwidth); }
#if HDR
struct nilstructure {
@@ -2127,6 +2129,11 @@ EX namespace nisot {
nilv::set_flags();
return 0;
}
else if(argis("-nilwidth")) {
PHASEFROM(2);
shift_arg_formula(nilv::nilwidth);
return 0;
}
else if(argis("-nilv")) {
PHASEFROM(2);
if(nil) stop_game();