summaryrefslogtreecommitdiffstats
path: root/dab/human.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dab/human.cc')
-rw-r--r--dab/human.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/dab/human.cc b/dab/human.cc
index 79ceeb74..9ad042c9 100644
--- a/dab/human.cc
+++ b/dab/human.cc
@@ -1,4 +1,4 @@
-/* $NetBSD: human.cc,v 1.1 2003/12/27 01:16:55 christos Exp $ */
+/* $NetBSD: human.cc,v 1.2 2005/07/02 15:48:03 jdc Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -40,14 +40,17 @@
* human.C: Human interface for dots, using rogue-like keys.
*/
#include "defs.h"
-RCSID("$NetBSD: human.cc,v 1.1 2003/12/27 01:16:55 christos Exp $")
+RCSID("$NetBSD: human.cc,v 1.2 2005/07/02 15:48:03 jdc Exp $")
#include "human.h"
#include "board.h"
#include "box.h"
+#include "ttyscrn.h"
#define CONTROL(a) ((a) & 037)
+extern GAMESCREEN *sc;
+
HUMAN::HUMAN(const char c) :
PLAYER(c),
_curx(0),
@@ -99,6 +102,8 @@ void HUMAN::play(const BOARD& b, size_t& y, size_t& x, int& dir)
break;
case 'q': case 'Q':
+ // Cleanup
+ delete sc;
exit(0);
case CONTROL('L'): case CONTROL('R'):