diff --git a/src/p_setup.c b/src/p_setup.c index dc115ed19bf16d93f4c4319146e4ce0259e0644a..8b82e8c69ba13e6b2d867a69b2a35107f5b3cbe3 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1527,8 +1527,6 @@ static void TextmapParse(UINT32 dataPos, size_t num, void (*parser)(UINT32, char } } -#define MAXFLATSIZE (2048<<FRACBITS) - /** Provides a fix to the flat alignment coordinate transform from standard Textmaps. */ static void TextmapFixFlatOffsets(sector_t *sec) @@ -1554,8 +1552,6 @@ static void TextmapFixFlatOffsets(sector_t *sec) } } -#undef MAXFLATSIZE - /** Loads the textmap data, after obtaining the elements count and allocating their respective space. */ static void P_LoadTextmap(void) diff --git a/src/p_spec.c b/src/p_spec.c index 4de488654f23e9aa0eecd685925d20bcb39ff007..a97d1f92ffd467389da8834a951b6c278c25558e 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -52,9 +52,6 @@ mobj_t *skyboxcenterpnts[16]; // array of MT_SKYBOX centerpoint mobjs // Amount (dx, dy) vector linedef is shifted right to get scroll amount #define SCROLL_SHIFT 5 -// This must be updated whenever we up the max flat size - quicker to assume rather than figuring out the sqrt of the specific flat's filesize. -#define MAXFLATSIZE (2048<<FRACBITS) - /** Animated texture descriptor * This keeps track of an animated texture or an animated flat. * \sa P_UpdateSpecials, P_InitPicAnims, animdef_t diff --git a/src/p_spec.h b/src/p_spec.h index 630bcb3de1045cdc9eec2077a6972c0662167bea..4b64fe05d9bed944511f852b84f70cf86db000a9 100644 --- a/src/p_spec.h +++ b/src/p_spec.h @@ -27,6 +27,9 @@ extern mobj_t *skyboxcenterpnts[16]; // array of MT_SKYBOX centerpoint mobjs // #define GETSECSPECIAL(i,j) ((i >> ((j-1)*4))&15) +// This must be updated whenever we up the max flat size - quicker to assume rather than figuring out the sqrt of the specific flat's filesize. +#define MAXFLATSIZE (2048<<FRACBITS) + // at game start void P_InitPicAnims(void);