1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-14 20:57:10 +00:00

rogueviz:: nilrider:: achievements and leaderboards should be fixed

This commit is contained in:
Zeno Rogue
2025-10-10 11:37:24 +02:00
parent e145de89b1
commit f061dd6cf6

View File

@@ -167,6 +167,9 @@ bool turn(int delta) {
for(int i=0; i<delta * simulation_speed; i++) { for(int i=0; i<delta * simulation_speed; i++) {
curlev->history.push_back(curlev->current); curlev->history.push_back(curlev->current);
curlev->current.be_consistent(); curlev->current.be_consistent();
#if RVCOL
auto goals = curlev->current.goals;
#endif
bool b = curlev->current.tick(curlev); bool b = curlev->current.tick(curlev);
running = b; running = b;
if(!b) { if(!b) {
@@ -175,7 +178,6 @@ bool turn(int delta) {
break; break;
} }
#if RVCOL #if RVCOL
auto goals = curlev->current.goals;
if(b) { if(b) {
goals = curlev->current.goals &~goals; goals = curlev->current.goals &~goals;
int gid = 0; int gid = 0;