\f
#define TERM_MESSAGE_TABLE \
{ \
-/* 0x00 */ "Moriturus te saluto", \
+/* 0x00 */ 0, \
/* 0x01 */ "Unrecoverable error while loading a band", \
/* 0x02 */ "Broken heart encountered", \
/* 0x03 */ "Non pointer relocation", \
/* 0x19 */ "User requested termination after trap", \
/* 0x1A */ "Backing out of non-primitive" \
}
+\f
+#define MAX_HALT_MESSAGE 4
+#define TERM_HALT_MESSAGE_TABLE \
+{ \
+ "Moriturus te saluto.", \
+ "Happy happy joy joy!", \
+ "Ceterum censeo Carthaginem esse delendam.", \
+ "..#]^@^@^@ NO CARRIER" \
+}
#endif /* SCM_ERRORS_H */
extern const char * Error_Names [];
extern const char * Term_Names [];
extern const char * term_messages [];
+extern const char * term_halt_messages [];
extern const char * fixed_objects_names [];
extern bool trapping;
const char * Error_Names [] = ERROR_NAME_TABLE; /* in errors.h */
const char * Term_Names [] = TERM_NAME_TABLE; /* in errors.h */
const char * term_messages [] = TERM_MESSAGE_TABLE; /* in errors.h */
+const char * term_halt_messages [] = TERM_HALT_MESSAGE_TABLE; /* in errors.h */
const char * fixed_objects_names [] = FIXED_OBJECTS_NAMES; /* in fixobj.h */
{
if (!option_batch_mode)
{
- outf_console ("\n%s.\n", (term_messages[code]));
+ /* Pick a message "randomly" */
+ unsigned long i = (((unsigned long) Free) >> 3) % MAX_HALT_MESSAGE;
+ outf_console ("\n%s\n", (term_halt_messages[i]));
outf_flush_console ();
}
}