mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 22:37:06 +00:00
[Sync] Project Sync plus Revision changes
The main revision system changes are based on FoeReapers work in:
b37de3b83e
This commit is contained in:
parent
f5e2d53ccc
commit
bf4b6fafc5
39 changed files with 684 additions and 416 deletions
|
|
@ -580,7 +580,7 @@ bool ChatHandler::HandleServerLogLevelCommand(char* args)
|
|||
|
||||
/// @}
|
||||
|
||||
#ifdef linux
|
||||
#if (PLATFORM == PLATFORM_APPLE) || (PLATFORM == PLATFORM_UNIX)
|
||||
// Non-blocking keypress detector, when return pressed, return 1, else always return 0
|
||||
int kb_hit_return()
|
||||
{
|
||||
|
|
@ -617,7 +617,7 @@ void CliRunnable::run()
|
|||
while (!World::IsStopped())
|
||||
{
|
||||
fflush(stdout);
|
||||
#ifdef linux
|
||||
#if (PLATFORM == PLATFORM_APPLE) || (PLATFORM == PLATFORM_UNIX)
|
||||
while (!kb_hit_return() && !World::IsStopped())
|
||||
// With this, we limit CLI to 10commands/second
|
||||
{ usleep(100); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue