changed unique_ptr access to using raw pointers to denote non-ownership
added new flag -e for extra stuff (potions/races) IMPORTANT: main.cc is undergoing rework
This commit is contained in:
@ -47,6 +47,8 @@ feature proc_args(int argc, char **argv,
|
||||
result |= FEATURE_THROW;
|
||||
} else if (str == "-R") {
|
||||
result |= FEATURE_REVISIT;
|
||||
} else if (str == "-e") {
|
||||
result |= FEATURE_EXTRA_STUFF;
|
||||
} else if (str == "-s") {
|
||||
++i;
|
||||
str = argv[i];
|
||||
@ -121,8 +123,8 @@ feature proc_args(int argc, char **argv,
|
||||
|
||||
if (result & FEATURE_NCURSES) {
|
||||
curse = std::make_unique<cursor>();
|
||||
in = std::make_unique<curses_input>(*curse);
|
||||
out = std::make_unique<curses_output>(*curse);
|
||||
in = std::make_unique<curses_input>(curse.get());
|
||||
out = std::make_unique<curses_output>(curse.get());
|
||||
}
|
||||
|
||||
if (result & FEATURE_SEED) {
|
||||
|
Reference in New Issue
Block a user