mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Addon Options: cannot switch to admin mode without admin perms
This commit is contained in:
parent
7eb28a23b4
commit
ba30645494
1 changed files with 5 additions and 1 deletions
|
|
@ -235,6 +235,9 @@ boolean menu_input(INT32)
|
|||
{
|
||||
menu_mode((menu_mode() + 1) % kNumModes);
|
||||
|
||||
if (!server && !IsPlayerAdmin(consoleplayer))
|
||||
menu_mode(kUser);
|
||||
|
||||
// reload menu
|
||||
menu_open();
|
||||
}
|
||||
|
|
@ -259,7 +262,8 @@ void draw_menu()
|
|||
draw = draw.y(27 + kMargin);
|
||||
|
||||
draw.x(BASEVIDWIDTH/2).font(Draw::Font::kGamemode).text(mode_strings[menu_mode()]);
|
||||
K_drawButton((draw.x() + 8) * FRACUNIT, (draw.y() + 8) * FRACUNIT, 0, kp_button_y[0], M_MenuButtonHeld(0, MBT_Y));
|
||||
if (server || IsPlayerAdmin(consoleplayer))
|
||||
K_drawButton((draw.x() + 8) * FRACUNIT, (draw.y() + 8) * FRACUNIT, 0, kp_button_y[0], M_MenuButtonHeld(0, MBT_Y));
|
||||
draw = draw.y(32 + kMargin);
|
||||
|
||||
currentMenu->y = std::min(static_cast<int>(draw.y()), (BASEVIDHEIGHT/2) - g_menu_offsets[itemOn]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue