Initial check in of icontext.

This commit is contained in:
Bart House
2018-11-22 20:47:22 -08:00
parent 6272c37035
commit 5bbe3cd6bb
6 changed files with 34 additions and 19 deletions

View File

@@ -439,8 +439,20 @@ struct early_opt {
boolean valallowed;
};
/* encumbrance */
E int oldcap;
/* instance_context holds per game instance data that does not need to be
* persisted upon game exit. This game instance data is one of the first
* 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 */
};
E struct instance_context icontext;
E void icontext_init();
#undef E