mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
disconnect method to connection to be used instead of just timing out
This commit is contained in:
parent
705de63dcd
commit
a26c92d7dd
9 changed files with 690 additions and 245 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -1513,6 +1513,10 @@ int main(int argc, char *argv[])
|
|||
// Test the text input system
|
||||
/*(new GUITextInputMenu(guienv, guiroot, -1, &g_active_menu_count,
|
||||
NULL))->drop();*/
|
||||
|
||||
// Launch pause menu
|
||||
(new GUIPauseMenu(guienv, guiroot, -1, g_device,
|
||||
&g_active_menu_count))->drop();
|
||||
|
||||
// First line of debug text
|
||||
gui::IGUIStaticText *guitext = guienv->addStaticText(
|
||||
|
@ -2164,9 +2168,11 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
// We want a slight delay to very little
|
||||
// time consuming nodes
|
||||
if(nodig_delay_counter < 0.15)
|
||||
//float mindelay = 0.15;
|
||||
float mindelay = 0.20;
|
||||
if(nodig_delay_counter < mindelay)
|
||||
{
|
||||
nodig_delay_counter = 0.15;
|
||||
nodig_delay_counter = mindelay;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue