mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-07 06:14:50 +00:00
fixes to hrmap_subrule
This commit is contained in:
parent
906ad4ab90
commit
4c4120e4f0
6
reg3.cpp
6
reg3.cpp
@ -1916,7 +1916,7 @@ EX namespace reg3 {
|
|||||||
address last = bfs[i];
|
address last = bfs[i];
|
||||||
int state = last.second;
|
int state = last.second;
|
||||||
int fv = last.first;
|
int fv = last.first;
|
||||||
for(int d=0; d<S7; d++) {
|
for(int d=0; d<childpos[state+1]-childpos[state]; d++) {
|
||||||
int nstate = children[childpos[state]+d];
|
int nstate = children[childpos[state]+d];
|
||||||
if(nstate < -1) nstate += (1<<16);
|
if(nstate < -1) nstate += (1<<16);
|
||||||
if(nstate >= 0) {
|
if(nstate >= 0) {
|
||||||
@ -1934,13 +1934,13 @@ EX namespace reg3 {
|
|||||||
DEBB(DF_GEOM, ("q2 = ", q2));
|
DEBB(DF_GEOM, ("q2 = ", q2));
|
||||||
|
|
||||||
bfs = {};
|
bfs = {};
|
||||||
for(int i=0; i<qty; i++)
|
for(int i=0; i<isize(root); i++)
|
||||||
bfs.emplace_back(i, root[i]);
|
bfs.emplace_back(i, root[i]);
|
||||||
for(int i=0; i<isize(bfs); i++) {
|
for(int i=0; i<isize(bfs); i++) {
|
||||||
address last = bfs[i];
|
address last = bfs[i];
|
||||||
int state = last.second;
|
int state = last.second;
|
||||||
int fv = last.first;
|
int fv = last.first;
|
||||||
for(int d=0; d<S7; d++) {
|
for(int d=0; d<childpos[state+1]-childpos[state]; d++) {
|
||||||
int nstate = children[childpos[state]+d];
|
int nstate = children[childpos[state]+d];
|
||||||
if(nstate < -1) nstate += (1<<16);
|
if(nstate < -1) nstate += (1<<16);
|
||||||
if(nstate >= 0) {
|
if(nstate >= 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user