| 617 | } |
| 618 | |
| 619 | static bool preserve_rooms_setFeature(color_ostream &out, bool enabled, string feature) { |
| 620 | DEBUG(control,out).print("preserve_rooms_setFeature: enabled={}, feature={}\n", |
| 621 | enabled, feature); |
| 622 | if (feature == "track-missions") { |
| 623 | config.set_bool(CONFIG_TRACK_MISSIONS, enabled); |
| 624 | if (is_enabled && enabled) |
| 625 | do_cycle(out); |
| 626 | } else if (feature == "track-roles") { |
| 627 | config.set_bool(CONFIG_TRACK_ROLES, enabled); |
| 628 | } else { |
| 629 | return false; |
| 630 | } |
| 631 | |
| 632 | return true; |
| 633 | } |
| 634 | |
| 635 | static bool preserve_rooms_getFeature(color_ostream &out, string feature) { |
| 636 | TRACE(control,out).print("preserve_rooms_getFeature: feature={}\n", feature); |