1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

several features which actually were in 10.4p but not commited

This commit is contained in:
Zeno Rogue 2018-08-09 19:27:52 +02:00
parent 3b50632217
commit ebe57688ad
2 changed files with 9 additions and 2 deletions

View File

@ -1492,6 +1492,9 @@ int read_config_args() {
else if(argis("-els")) { else if(argis("-els")) {
shift(); conformal::extra_line_steps = argf(); shift(); conformal::extra_line_steps = argf();
} }
else if(argis("-stretch")) {
PHASEFROM(2); shift(); vid.stretch = argf();
}
TOGGLE('o', vid.usingGL, switchGL()) TOGGLE('o', vid.usingGL, switchGL())
TOGGLE('f', vid.full, switchFullscreen()) TOGGLE('f', vid.full, switchFullscreen())
else return 1; else return 1;

View File

@ -2,7 +2,7 @@ namespace hr { namespace irr {
bool on; bool on;
ld density = 6; ld density = 2;
ld quality = .2; ld quality = .2;
int place_attempts = 10; int place_attempts = 10;
int rearrange_max_attempts = 50; int rearrange_max_attempts = 50;
@ -416,6 +416,10 @@ bool step(int delta) {
p1.spin.resize(N); p1.spin.resize(N);
for(int j=0; j<N; j++) { for(int j=0; j<N; j++) {
auto i1 = p1.neid[j]; auto i1 = p1.neid[j];
if(i1 < 0 || i1 >= isize(cells)) {
runlevel = 0;
return false;
}
bool found = false; bool found = false;
for(int k=0; k < isize(cells[i1].vertices); k++) for(int k=0; k < isize(cells[i1].vertices); k++)
if(cells[i1].neid[k] == i) if(cells[i1].neid[k] == i)