Additional testing, entity deletion, and player disconnection

This commit is contained in:
2020-05-01 02:24:34 -04:00
parent b94b469c39
commit 9a6ba77e72
7 changed files with 235 additions and 21 deletions

View File

@ -28,18 +28,16 @@ void * console_logic(void *)
while(console_is_running)
{
if(!std::getline(std::cin, input_string))
if(std::getline(std::cin, input_string))
{
std::cout << "Console I/O error!" << std::endl;
}
if(input_string == "stop")
{
console_is_running = false;
}
else
{
std::cout << "Invalid console command!" << std::endl;
if(input_string == "stop")
{
console_is_running = false;
}
else
{
std::cout << "Invalid console command!" << std::endl;
}
}
}
return 0;