More work on the login system, especially 'tangible.redirect'

This commit is contained in:
2021-03-30 19:30:58 -04:00
parent aa7de03c57
commit 8c149cf2ee
6 changed files with 40 additions and 10 deletions

View File

@@ -149,7 +149,7 @@ void TextGame::do_quit_command(const StringVec &cmd) {
std::cerr << "q command (quit) takes no arguments" << std::endl;
return;
}
exit(0);
actor_id_ = 0;
}
void TextGame::do_command(const StringVec &words) {
@@ -184,6 +184,7 @@ void TextGame::run()
console_.clear();
while (true) {
check_redirects();
if (actor_id_ == 0) break;
console_.add_stdin();
int action = console_.action();
if (action == LuaConsole::DO_LUA) {