ericw-tools/qbsp
Eric Wasylishen 5111c5485c qbsp: account for miptex struct in wad3 lump disksize
Here's another little tyrutils patch: in qbsp, I believe the
calculation of the "disksize" field of the miptex lumps when using
WAD3 textures is missing the size of the dmiptex_t struct (40 bytes),
causing the resulting bsp file to be slightly truncated.

I noticed this because one of Tronyn's levels (jam2_tronyn.bsp) was
crashing Quakespasm for me; it turned out the engine was trying to
read 40 bytes past the end of the file when loading the last texture
in the bsp. I got him to send over his map source, wads, and compiler;
he was using tyrutils 0.15 and wad3 format textures, and I confirmed
that this patch fixes the engine crash.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2014-10-30 12:54:36 +10:30
..
brush.c qbsp: improve a few error messages using new line number info 2014-02-13 15:57:01 +10:30
bspfile.c qbsp, common: support both DP and RMQ variants of the BSP2 format 2013-09-28 11:48:37 +09:30
bspfile.h qbsp, common: support both DP and RMQ variants of the BSP2 format 2013-09-28 11:48:37 +09:30
cmdlib.c qbsp: switch to using time() instead of ftime() 2013-02-17 11:25:47 +10:30
csg4.c trivial: pad counts to 8 digits, sizes to 10 in output 2013-04-24 15:18:01 +09:30
file.c qbsp: rename Error_() to Error() 2013-04-22 20:21:17 +09:30
file.h qbsp: change LoadFile spec so we don't need to cast when calling 2013-02-17 11:03:09 +10:30
globals.c qbsp: add the -2psb command line option to output RMQ style BSP2 2013-10-03 11:09:25 +09:30
map.c qbsp: save line number information when generating faces 2014-02-13 15:55:23 +10:30
mathlib.c [PATCH] qbsp: Set up sphere around face for fast intersect checks 2007-09-23 20:46:22 +09:30
merge.c trivial: pad counts to 8 digits, sizes to 10 in output 2013-04-24 15:18:01 +09:30
outside.c trivial: pad counts to 8 digits, sizes to 10 in output 2013-04-24 15:18:01 +09:30
parser.c qbsp: add a PARSE_OPTIONAL parser flag 2013-10-01 12:34:01 +09:30
parser.h qbsp: add a PARSE_OPTIONAL parser flag 2013-10-01 12:34:01 +09:30
portals.c trivial: pad counts to 8 digits, sizes to 10 in output 2013-04-24 15:18:01 +09:30
qbsp.c qbsp: make transparent water the default for visibility calculations 2013-12-24 19:08:46 +10:30
qbsp.h qbsp: save line number information when generating faces 2014-02-13 15:55:23 +10:30
solidbsp.c qbsp: separate the lump numbering from the memory sizes array order 2013-08-19 12:22:21 +09:30
surfaces.c qbsp: add the -2psb command line option to output RMQ style BSP2 2013-10-03 11:09:25 +09:30
tjunc.c qbsp: fix coordinates in degenerate edge error in tjunc.c 2014-05-06 20:30:15 +09:30
util.c qbsp: duplicate the MemSizes array for the two BSP formats 2013-08-19 14:36:40 +09:30
wad.c qbsp: account for miptex struct in wad3 lump disksize 2014-10-30 12:54:36 +10:30
wad.h qbsp: make wadlist a null-terminated linked list of wads 2013-03-13 12:56:57 +10:30
warnerr.h qbsp: remove remaining enum errors 2013-04-22 20:15:09 +09:30
winding.c qbsp: fix MidpointWinding bug, which fixes the bad leak lines! 2013-04-24 08:54:26 +09:30
writebsp.c qbsp: use explicit cast to short in ExportLeaf_BSP2 node bounds 2014-02-13 15:00:05 +10:30