mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +00:00
rulegen:: improved memory usage
This commit is contained in:
parent
858fd61794
commit
627963c634
@ -416,6 +416,7 @@ void fix_distances(tcell *c) {
|
|||||||
auto& d = c->dist;
|
auto& d = c->dist;
|
||||||
restart:
|
restart:
|
||||||
for(int i=0; i<c->type; i++) {
|
for(int i=0; i<c->type; i++) {
|
||||||
|
if(!c->move(i)) continue;
|
||||||
tcell *c1 = c->cmove(i);
|
tcell *c1 = c->cmove(i);
|
||||||
ufindc(c);
|
ufindc(c);
|
||||||
c1 = c->cmove(i);
|
c1 = c->cmove(i);
|
||||||
@ -963,8 +964,6 @@ void rules_iteration_for(tcell *c) {
|
|||||||
ts.sid = cwmain.at->id;
|
ts.sid = cwmain.at->id;
|
||||||
ts.parent_dir = cwmain.spin;
|
ts.parent_dir = cwmain.spin;
|
||||||
ts.is_root = c->dist == 0;
|
ts.is_root = c->dist == 0;
|
||||||
for(int d=0; d<c->type; d++)
|
|
||||||
cq.push_back(c->cmove(d));
|
|
||||||
}
|
}
|
||||||
else if(ts.rules != cids) {
|
else if(ts.rules != cids) {
|
||||||
handle_distance_errors();
|
handle_distance_errors();
|
||||||
|
Loading…
Reference in New Issue
Block a user