Skip to content

Commit

Permalink
admin: Возможность отменить сохранение выбранного режима в файл
Browse files Browse the repository at this point in the history
  • Loading branch information
dageavtobusnick committed Feb 3, 2025
1 parent 5e35d40 commit d62e312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/admin/topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,8 @@
log_and_message_admins("<span class='notice'>set the mode as [GLOB.master_mode].</span>")
to_chat(world, "<span class='boldnotice'>The mode is now: [GLOB.master_mode]</span>")
Game() // updates the main game menu
world.save_mode(GLOB.master_mode)
if (tgui_alert(usr, " Хотите ли вы сохранить этот режим как режим по умолчанию?", "Сохранить режим", list("Да", "Нет")) == "Да")
world.save_mode(GLOB.master_mode)
.(href, list("c_mode"=1))

else if(href_list["f_secret2"])
Expand Down

0 comments on commit d62e312

Please sign in to comment.