@@ -556,6 +556,15 @@ typedef unsigned char uchar;
|
||||
|
||||
#endif
|
||||
|
||||
/* PLAYAGAIN support for allowing the game shell to stay open after the player
|
||||
* saves or dies. This requires that the game engine can be re-entered to
|
||||
* start another game.
|
||||
*
|
||||
* This support does not include supporting playing another game when
|
||||
* a panic has occured due to undetermined state the engine is left in after a
|
||||
* panic */
|
||||
/* #define PLAYAGAIN */
|
||||
|
||||
/* End of Section 4 */
|
||||
|
||||
#ifdef TTY_TILES_ESCCODES
|
||||
|
||||
@@ -192,6 +192,7 @@ E NEARDATA char dogname[];
|
||||
E NEARDATA char catname[];
|
||||
E NEARDATA char horsename[];
|
||||
E char preferred_pet;
|
||||
E int petname_used;
|
||||
|
||||
E const char *occtxt; /* defined when occupation != NULL */
|
||||
E const char *nomovemsg;
|
||||
@@ -443,15 +444,10 @@ struct early_opt {
|
||||
* things initialized during the initialization of the game engine.
|
||||
* It is initialized with icontext_initial_state found in decl.c */
|
||||
|
||||
#define PLAYAGAIN
|
||||
|
||||
struct instance_context {
|
||||
int oldcap; /* encumberance - pickup.c */
|
||||
int petname_used; /* user preferred pet name has been used - dog.c */
|
||||
int jumping_is_magic; /* current jump result of magic - apply.c */
|
||||
int polearm_range_min; /* apply.c */
|
||||
int polearm_range_max; /* apply.c */
|
||||
int spec_dbon_applies; /* coordinate effects from spec_dbon() with
|
||||
* messages in artifact_hit() - artifact.c */
|
||||
int mrank_sz; /* loaded by max_rank_sz - botl.c */
|
||||
};
|
||||
|
||||
E struct instance_context icontext;
|
||||
|
||||
@@ -251,6 +251,9 @@ E void FDECL(destroy_drawbridge, (int, int));
|
||||
/* ### decl.c ### */
|
||||
|
||||
E void NDECL(decl_init);
|
||||
#ifdef PLAYAGAIN
|
||||
E void NDECL(decl_early_init);
|
||||
#endif
|
||||
|
||||
/* ### detect.c ### */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user