SAFERHANGUP

This is an initial round of SAFERHANGUP hangup changes.  It introduces
SAFERHANGUP, provides the core framework, and enables it for UNIX.

Window-port changes are provided for win/tty, win/X11 and win/gnome.  Qt
changes should be forthcoming after having Warwick look at them.
window.doc is updated so windowport maintainers have an clue what needs to
be done to support SAFERHANGUP.
This commit is contained in:
cohrs
2003-09-19 03:15:49 +00:00
parent 1382c6c028
commit 40b5b12673
12 changed files with 178 additions and 42 deletions

View File

@@ -256,6 +256,14 @@
#define SUSPEND /* let ^Z suspend the game */
#endif
/*
* Define SAFERHANGUP to delay hangup processing until the main command
* loop. 'safer' because it avoids certain cheats and also avoids losing
* objects being thrown when the hangup occurs. All unix windowports
* support SAFERHANGUP (couldn't define it here otherwise).
*/
#define SAFERHANGUP
#if defined(BSD) || defined(ULTRIX)
#include <sys/time.h>