()
| 75 | |
| 76 | |
| 77 | private static void Quit() |
| 78 | { |
| 79 | Cmd.ExecuteFunction("sv_shutdown", "Server quit ", "false"); |
| 80 | Cmd.ExecuteFunction("cl_shutdown"); |
| 81 | |
| 82 | if (Globals.logfile != null) |
| 83 | { |
| 84 | try |
| 85 | { |
| 86 | Globals.logfile.close(); |
| 87 | } |
| 88 | catch (IOException e) |
| 89 | { |
| 90 | } |
| 91 | Globals.logfile= null; |
| 92 | } |
| 93 | |
| 94 | System.exit(0); |
| 95 | } |
| 96 | |
| 97 | static void SendKeyEvents() { |
| 98 | ClientGlobals.re.getKeyboardHandler().Update(); |