fix map variations in non-BB games

This commit is contained in:
Martin Michelsen
2022-03-24 11:25:10 -07:00
parent e9ce295cda
commit fa90f32619
+7
View File
@@ -1611,6 +1611,13 @@ shared_ptr<Lobby> create_game_generic(shared_ptr<ServerState> s,
game->difficulty, bp_subtable, false);
}
}
} else {
// In non-BB games, just set the variations (we don't track items/enemies/
// etc.)
for (size_t x = 0; x < 0x20; x++) {
game->variations[x] = random_int(0, variation_maxes_online[(episode - 1)][x] - 1);
}
}
return game;