Add tombstone tribute to S.T.P. for 3.6.0
I've added build files for unices, but other platforms will need to define NH360_DEDICATION on their own.
This commit is contained in:
64
src/rip.c
64
src/rip.c
@@ -18,27 +18,7 @@ STATIC_DCL void FDECL(center, (int, char *));
|
||||
|
||||
#ifdef TEXT_TOMBSTONE
|
||||
|
||||
#ifndef NH320_DEDICATION
|
||||
/* A normal tombstone for end of game display. */
|
||||
static const char *rip_txt[] = {
|
||||
" ----------",
|
||||
" / \\",
|
||||
" / REST \\",
|
||||
" / IN \\",
|
||||
" / PEACE \\",
|
||||
" / \\",
|
||||
" | |", /* Name of player */
|
||||
" | |", /* Amount of $ */
|
||||
" | |", /* Type of death */
|
||||
" | |", /* . */
|
||||
" | |", /* . */
|
||||
" | |", /* . */
|
||||
" | 1001 |", /* Real year of death */
|
||||
" *| * * * | *",
|
||||
" _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______", 0
|
||||
};
|
||||
#define STONE_LINE_CENT 28 /* char[] element of center of stone face */
|
||||
#else /* NH320_DEDICATION */
|
||||
#ifdef NH320_DEDICATION
|
||||
/* NetHack 3.2.x displayed a dual tombstone as a tribute to Izchak. */
|
||||
static const char *rip_txt[] = {
|
||||
" ---------- ----------",
|
||||
@@ -59,7 +39,47 @@ static const char *rip_txt[] = {
|
||||
0
|
||||
};
|
||||
#define STONE_LINE_CENT 19 /* char[] element of center of stone face */
|
||||
#endif /* NH320_DEDICATION */
|
||||
#elif defined(NH360_DEDICATION)
|
||||
static const char *rip_txt[] = {
|
||||
" ---------- ----------",
|
||||
" / \\ / \\",
|
||||
" / REST \\ / This \\",
|
||||
" / IN \\ / release of \\",
|
||||
" / PEACE \\ / NetHack is \\",
|
||||
" / \\ / dedicated to \\",
|
||||
" | | | the memory of |",
|
||||
" | | | |",
|
||||
" | | | Sir Terry |",
|
||||
" | | | Pratchett |",
|
||||
" | | | 1948 - 2015 |",
|
||||
" | | | Ascended |",
|
||||
" | 1001 | | |",
|
||||
" * | * * * | * * | * * * | *",
|
||||
" _____)/\\|\\__//(\\/(/\\)/\\//\\/|_)________)/|\\\\_/_/(\\/(/\\)/\\/\\/|_)____",
|
||||
0
|
||||
};
|
||||
#define STONE_LINE_CENT 19 /* char[] element of center of stone face */
|
||||
#else /* no dedication */
|
||||
/* A normal tombstone for end of game display. */
|
||||
static const char *rip_txt[] = {
|
||||
" ----------",
|
||||
" / \\",
|
||||
" / REST \\",
|
||||
" / IN \\",
|
||||
" / PEACE \\",
|
||||
" / \\",
|
||||
" | |", /* Name of player */
|
||||
" | |", /* Amount of $ */
|
||||
" | |", /* Type of death */
|
||||
" | |", /* . */
|
||||
" | |", /* . */
|
||||
" | |", /* . */
|
||||
" | 1001 |", /* Real year of death */
|
||||
" *| * * * | *",
|
||||
" _________)/\\\\_//(\\/(/\\)/\\//\\/|_)_______", 0
|
||||
};
|
||||
#define STONE_LINE_CENT 28 /* char[] element of center of stone face */
|
||||
#endif /* no dedication */
|
||||
#define STONE_LINE_LEN \
|
||||
16 /* # chars that fit on one line \
|
||||
* (note 1 ' ' border) \
|
||||
|
||||
@@ -245,6 +245,22 @@ time_t when;
|
||||
tomb_text("1935-1994");
|
||||
tomb_text("");
|
||||
tomb_text("Ascended");
|
||||
#elif defined(NH360_DEDICATION)
|
||||
/* dedication */
|
||||
cno = 1;
|
||||
tomb_line = TEXT_TOP;
|
||||
tomb_text("This release");
|
||||
tomb_text("of NetHack");
|
||||
tomb_text("is dedicated");
|
||||
tomb_text("to the");
|
||||
tomb_text("memory of");
|
||||
tomb_text("");
|
||||
tomb_text("Sir Terry");
|
||||
tomb_text("Pratchett");
|
||||
tomb_text("");
|
||||
tomb_text("1948-2015");
|
||||
tomb_text("");
|
||||
tomb_text("Ascended");
|
||||
#endif
|
||||
/* Fade from black to full color */
|
||||
dofade(0, 16, 1);
|
||||
|
||||
@@ -22,6 +22,7 @@ CFLAGS=-g -O -I../include -DNOTPARMDECL $(CFLAGS1) -DDLB
|
||||
CFLAGS1=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" -DSECURE
|
||||
CFLAGS+=-DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
LINK=$(CC)
|
||||
# Only needed for GLIBC stack trace:
|
||||
|
||||
@@ -22,6 +22,7 @@ CFLAGS=-O -I../include -DNOTPARMDECL $(CFLAGS1) $(CFLAGS3)
|
||||
CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\"
|
||||
CFLAGS1=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\"
|
||||
CFLAGS3=-DX11_GRAPHICS -DDEFAULT_WINDOW_SYS=\"X11\" -DNOTTYGRAPHICS
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
LINK=$(CC)
|
||||
|
||||
|
||||
@@ -56,6 +56,7 @@ CC=gcc -Wall -Wextra -Wno-missing-field-initializers -Wimplicit -Wreturn-type -W
|
||||
CFLAGS=-g -I../include
|
||||
CFLAGS+=-DNOCLIPPING -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+= -DDEFAULT_WINDOW_SYS=\"$(WANT_DEFAULT)\" -DDLB
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
ifdef WANT_WIN_TTY
|
||||
WINSRC = $(WINTTYSRC)
|
||||
|
||||
@@ -77,6 +77,7 @@ CFLAGS+= -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+= -DDEFAULT_WINDOW_SYS=\"$(WANT_DEFAULT)\" -DDLB
|
||||
|
||||
CFLAGS+= -DGREPPATH=\"/usr/bin/grep\"
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
ifdef WANT_WIN_CHAIN
|
||||
CFLAGS+= -DWINCHAIN
|
||||
|
||||
@@ -65,6 +65,7 @@ CFLAGS+=-DNOCLIPPING -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+= -DDEFAULT_WINDOW_SYS=\"$(WANT_DEFAULT)\" -DDLB
|
||||
|
||||
CFLAGS+= -DGREPPATH=\"/usr/bin/grep\"
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
ifdef WANT_WIN_TTY
|
||||
WINSRC = $(WINTTYSRC)
|
||||
|
||||
@@ -75,6 +75,7 @@ CFLAGS+=-g -I../include
|
||||
CFLAGS+= -DNOMAIL -DNOTPARMDECL -DHACKDIR=\"$(HACKDIR)\"
|
||||
CFLAGS+= -DDEFAULT_WINDOW_SYS=\"$(WANT_DEFAULT)\" -DDLB
|
||||
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
CFLAGS+= -DGREPPATH=\"/usr/bin/grep\"
|
||||
|
||||
ifdef WANT_WIN_CHAIN
|
||||
|
||||
@@ -16,6 +16,7 @@ SHELLDIR=$(PREFIX)/games
|
||||
|
||||
CFLAGS=-O -I../include
|
||||
LINK=$(CC)
|
||||
CFLAGS+=NH360_DEDICATION
|
||||
|
||||
WINSRC = $(WINTTYSRC)
|
||||
WINOBJ = $(WINTTYOBJ)
|
||||
|
||||
Reference in New Issue
Block a user