fix minimum player levels for Hard, etc. on non-V4

This commit is contained in:
Martin Michelsen
2023-12-17 13:50:18 -08:00
parent f14f7dd93b
commit 7a34fb0f7a
4 changed files with 14 additions and 12 deletions
+3 -3
View File
@@ -3813,12 +3813,12 @@ shared_ptr<Lobby> create_game_generic(
// Episode 1 (for example) are actually 1, 20, 40, 80.
switch (episode) {
case Episode::EP1: {
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[0] : DEFAULT_MIN_LEVELS_EP1;
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[0] : DEFAULT_MIN_LEVELS_V3;
min_level = min_levels[difficulty];
break;
}
case Episode::EP2: {
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[1] : DEFAULT_MIN_LEVELS_EP2;
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[1] : DEFAULT_MIN_LEVELS_V3;
min_level = min_levels[difficulty];
break;
}
@@ -3826,7 +3826,7 @@ shared_ptr<Lobby> create_game_generic(
min_level = 0;
break;
case Episode::EP4: {
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[2] : DEFAULT_MIN_LEVELS_EP4;
const auto& min_levels = (c->version() == Version::BB_V4) ? s->min_levels_v4[2] : DEFAULT_MIN_LEVELS_V3;
min_level = min_levels[difficulty];
break;
}