From 60a877c7935760d798db16079241f32aa419fb7a Mon Sep 17 00:00:00 2001 From: Gordon Weeks <627684+gcweeks@users.noreply.github.com> Date: Sat, 31 Jan 2026 23:08:48 -0800 Subject: [PATCH] Allow for all-CPU play --- src/samples/instrument_select.h | 27 ++++----------------------- src/samples/title_screen.h | 2 +- 2 files changed, 5 insertions(+), 24 deletions(-) diff --git a/src/samples/instrument_select.h b/src/samples/instrument_select.h index dd0a341..afaaa61 100644 --- a/src/samples/instrument_select.h +++ b/src/samples/instrument_select.h @@ -225,29 +225,10 @@ public: draw_slot_label(icon_x_left, cy, SLOT_LEFT); draw_slot_label(icon_x_right, cy, SLOT_RIGHT); - bool at_least_one_selected = false; - for (int s = 0; s < MAX_INSTRUMENT_TYPES; s++) - { - if (instrument_owner[s] >= 0) - { - at_least_one_selected = true; - break; - } - } - if (at_least_one_selected) - { - const char* prompt = "Press Start to begin"; - float font_size = 24.0f; - float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x; - DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE); - } - else - { - const char* prompt = "Select at least one instrument"; - float font_size = 24.0f; - float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x; - DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE); - } + const char* prompt = "Press Start to begin"; + float font_size = 24.0f; + float pw = MeasureTextEx(font, prompt, font_size, 1.0f).x; + DrawTextEx(font, prompt, Vector2{cx - pw * 0.5f, h - 40.0f}, font_size, 1.0f, WHITE); } }; diff --git a/src/samples/title_screen.h b/src/samples/title_screen.h index da83e63..fa2b81c 100644 --- a/src/samples/title_screen.h +++ b/src/samples/title_screen.h @@ -31,7 +31,7 @@ public: auto height = GetScreenHeight(); auto title_text_size = MeasureTextEx(font, title.c_str(), 64, 0); - std::string subtitle = "Press Start";// or Enter to Play"; + std::string subtitle = "Press Start"; auto subtitle_text_size = MeasureTextEx(font, subtitle.c_str(), 32, 0); ClearBackground(SKYBLUE);