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

removed the tohex parameter

This commit is contained in:
Zeno Rogue
2019-11-14 19:33:55 +01:00
parent decd30164d
commit 012d833f50
8 changed files with 22 additions and 21 deletions

View File

@@ -579,21 +579,21 @@ EX void generate_track() {
if(WDIM == 2 && !bounded_track) for(a=0; a<10; a += .1) {
hyperpoint h = straight * parabolic1(a) * C0;
cell *at = s;
virtualRebase(at, h, true);
virtualRebase(at, h);
if(!rti_id.count(at) || get_info(at).from_track >= TWIDTH) break;
}
if(WDIM == 2 && !bounded_track) for(ld cleaner=0; cleaner<a*.75; cleaner += .2) for(int dir=-1; dir<=1; dir+=2) {
transmatrix T = straight * parabolic1(cleaner * dir);
cell *at = s;
virtualRebase(at, T, true);
virtualRebase(at, T);
get_info(at).from_start = 0;
for(ld u=0; u<50; u++) {
if(at->wall != waBarrier)
makeEmpty(at);
killMonster(at, moNone, 0);
T = T * xpush(.1);
virtualRebase(at, T, true);
virtualRebase(at, T);
}
}
@@ -623,7 +623,7 @@ EX void generate_track() {
for(const transmatrix& t: forbidden) if(hdist(t*C0, who->at * C0) < 10. / (j+10)) ok = false;
if(ok) break;
}
virtualRebase(who, true);
virtualRebase(who);
}
if(bounded_track) track.back()->wall = waCloud;