• R/O
  • SSH
  • HTTPS

jinrousiki: Commit


Commit MetaInfo

Revision2718 (tree)
Time2021-05-29 22:16:10
Authorumethyl

Log Message

RoomOptionManager::LoadPostInChange()

Change Summary

Incremental Difference

--- trunk/include/option/room_option_manager_class.php (revision 2717)
+++ trunk/include/option/room_option_manager_class.php (revision 2718)
@@ -15,16 +15,7 @@
1515 //村作成オプション入力情報ロード
1616 public static function LoadPost() {
1717 self::LoadPostBase();
18- if (true === RQ::Get()->change_room) { //変更できないオプションを自動セット
19- foreach (['gm_login', 'dummy_boy'] as $option) {
20- if (DB::$ROOM->IsOption($option)) {
21- OptionLoader::Load($option)->LoadPost();
22- if (RQ::Get()->$option) {
23- break;
24- }
25- }
26- }
27- }
18+ self::LoadPostInChange();
2819
2920 if (RQ::Get()->quiz) { //クイズ村
3021 if (false === RQ::Get()->change_room) {
@@ -117,4 +108,21 @@
117108 'not_open_cast_selector', 'perverseness', 'replace_human_selector', 'special_role'
118109 );
119110 }
111+
112+ //村作成オプション入力情報ロード (オプション変更用)
113+ private static function LoadPostInChange() {
114+ if (false === RQ::Get()->change_room) {
115+ return;
116+ }
117+
118+ //変更できないオプションを自動セット
119+ foreach (['gm_login', 'dummy_boy'] as $option) {
120+ if (DB::$ROOM->IsOption($option)) {
121+ OptionLoader::Load($option)->LoadPost();
122+ if (RQ::Get()->$option) {
123+ break;
124+ }
125+ }
126+ }
127+ }
120128 }
Show on old repository browser