mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
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:
parent
2d30cddc66
commit
0ce32a793e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue