diff options
author | Simon Howard | 2014-08-13 21:14:21 -0400 |
---|---|---|
committer | Simon Howard | 2014-08-13 21:14:21 -0400 |
commit | 6b422a3ed52742adeb57da3fa934090130696d2a (patch) | |
tree | 2313b0b6344ee12d7a6869bb12b1bf1fa72867f7 /src/doom/p_local.h | |
parent | b83132a4962787aabf2e07ae90d37d6d87b001b3 (diff) | |
parent | af553de8c714a80ea6ada5cc7487c689ed9fccb0 (diff) | |
download | chocolate-doom-6b422a3ed52742adeb57da3fa934090130696d2a.tar.gz chocolate-doom-6b422a3ed52742adeb57da3fa934090130696d2a.tar.bz2 chocolate-doom-6b422a3ed52742adeb57da3fa934090130696d2a.zip |
Merge branch 'master' of github.com:chocolate-doom/chocolate-doom
Diffstat (limited to 'src/doom/p_local.h')
-rw-r--r-- | src/doom/p_local.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/doom/p_local.h b/src/doom/p_local.h index fea6f1ea..95fa4053 100644 --- a/src/doom/p_local.h +++ b/src/doom/p_local.h @@ -208,6 +208,20 @@ extern fixed_t tmceilingz; extern line_t* ceilingline; +// fraggle: I have increased the size of this buffer. In the original Doom, +// overrunning past this limit caused other bits of memory to be overwritten, +// affecting demo playback. However, in doing so, the limit was still +// exceeded. So we have to support more than 8 specials. +// +// We keep the original limit, to detect what variables in memory were +// overwritten (see SpechitOverrun()) + +#define MAXSPECIALCROSS 20 +#define MAXSPECIALCROSS_ORIGINAL 8 + +extern line_t* spechit[MAXSPECIALCROSS]; +extern int numspechit; + boolean P_CheckPosition (mobj_t *thing, fixed_t x, fixed_t y); boolean P_TryMove (mobj_t* thing, fixed_t x, fixed_t y); boolean P_TeleportMove (mobj_t* thing, fixed_t x, fixed_t y); |