Return the correct size for set_bsp*_write().

Need to subtract the size of the bsp_t/bsp29_t struct. Now old and new
qfbsp produce identical bsps (so long as they're both unoptimized, or
(probably) both optimized).
This commit is contained in:
Bill Currie 2012-09-07 20:40:58 +09:00
parent 2d30cddc66
commit 0ce32a793e

View file

@ -838,7 +838,7 @@ do { \
SET_LUMP (LUMP_ENTITIES, entdata);
SET_LUMP (LUMP_TEXTURES, texdata);
*_size = size;
*_size = size - sizeof (*tbsp);
return tbsp;
}
@ -924,7 +924,7 @@ do { \
SET_LUMP (LUMP_ENTITIES, entdata);
SET_LUMP (LUMP_TEXTURES, texdata);
*_size = size;
*_size = size - sizeof (*tbsp);
return tbsp;
}