Merge pull request #1257 from BeyondThe5D/remove-save-level-on-classic-hax

Disable save level button on Classic mode when in multiplayer
This commit is contained in:
UnknownShadow200 2024-09-23 17:39:02 +10:00 committed by GitHub
commit a3a78d11c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -615,6 +615,9 @@ static void ClassicPauseScreen_Init(void* screen) {
if (Server.IsSinglePlayer) return; if (Server.IsSinglePlayer) return;
s->btns[1].flags = WIDGET_FLAG_DISABLED; s->btns[1].flags = WIDGET_FLAG_DISABLED;
s->btns[3].flags = WIDGET_FLAG_DISABLED; s->btns[3].flags = WIDGET_FLAG_DISABLED;
if (Game_ClassicHacks) return;
s->btns[2].flags = WIDGET_FLAG_DISABLED;
} }
static const struct ScreenVTABLE ClassicPauseScreen_VTABLE = { static const struct ScreenVTABLE ClassicPauseScreen_VTABLE = {