1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-21 19:44:04 +00:00

An option to play on a disk (and use bounded space rules). Also renamed 'bounded' flag to 'closed' or similar, and improved Halloween

This commit is contained in:
Zeno Rogue
2022-05-21 13:08:42 +02:00
parent 9bc0623022
commit 793148729b
40 changed files with 218 additions and 171 deletions

View File

@@ -149,7 +149,7 @@ EX namespace euc {
vector<cell*> toruscells;
vector<cell*>& allcells() override {
if(bounded) {
if(closed_manifold && !disksize) {
if(isize(toruscells) == 0) {
celllister cl(getOrigin()->c7, 1000, 1000000, NULL);
toruscells = cl.lst;
@@ -634,7 +634,7 @@ EX namespace euc {
}
set_flag(ginf[g].flags, qANYQ, eu.infinite_dims < dim);
set_flag(ginf[g].flags, qBOUNDED, eu.infinite_dims == 0);
set_flag(ginf[g].flags, qCLOSED, eu.infinite_dims == 0);
set_flag(ginf[g].flags, qSMALL, eu.infinite_dims == 0 && eu.det <= 4096);
bool nonori = false;
if(eu.twisted&1) nonori = !nonori;