+ if (done_curses) {
+ Signal("It looks like you've had it!",
+ (struct ship *)0);
+ switch (conditions) {
+ case LEAVE_QUIT:
+ break;
+ case LEAVE_CAPTURED:
+ Signal("Your ship was captured.",
+ (struct ship *)0);
+ break;
+ case LEAVE_HURRICAN:
+ Signal("Hurricane! All ships destroyed.",
+ (struct ship *)0);
+ break;
+ case LEAVE_DRIVER:
+ /* don't clear 'hasdriver' here */
+ Signal("The driver died.", (struct ship *)0);
+ break;
+ default:
+ Signal("A funny thing happened (%d).",
+ (struct ship *)0, conditions);
+ }
+ } else {
+ switch (conditions) {
+ case LEAVE_QUIT:
+ break;
+ case LEAVE_DRIVER:
+ printf("The driver died.\n");
+ break;
+ case LEAVE_FORK:
+ hasdriver = 0;
+ printf("Can't fork.\n");
+ break;
+ default:
+ printf("A funny thing happened (%d).\n",
+ conditions);
+ }
+ }
+
+ if (ms != 0) {