Refactor code in world-core that spawns threads
This commit is contained in:
@@ -54,9 +54,10 @@ void LuaConsole::simplify(const StringVec &words) {
|
||||
return;
|
||||
} else if (sv::valid_int64(words[0])) {
|
||||
if (words.size() == 1) {
|
||||
eng::string num = words[0];
|
||||
words_.clear();
|
||||
words_.push_back("choose");
|
||||
words_.push_back(words[0]);
|
||||
words_.push_back(num);
|
||||
} else {
|
||||
synerr("/choose command takes no arguments");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user