afegit escenari personalitzat per parametre

This commit is contained in:
2026-03-11 22:44:17 +01:00
parent ea27a771ab
commit dfbd8a430b
8 changed files with 99 additions and 6 deletions

View File

@@ -279,6 +279,8 @@ void UIManager::renderDebugHUD(const Engine* engine,
// Máximo de pelotas en modos automáticos (resultado del benchmark)
int max_auto_idx = engine->getMaxAutoScenario();
int max_auto_balls = BALL_COUNT_SCENARIOS[max_auto_idx];
if (engine->isCustomAutoAvailable() && engine->getCustomScenarioBalls() > max_auto_balls)
max_auto_balls = engine->getCustomScenarioBalls();
std::string max_auto_text;
if (max_auto_balls >= 1000) {
std::string count_str = std::to_string(max_auto_balls);