From ad8cf0308eb5ff304381af622c0ef36d3f92ef62 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 11 Sep 2005 10:39:45 +0000 Subject: [PATCH] fix Sajt's bug in q1bsp/hlbsp hullsizes (off by one on the hull index) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5718 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/model_brush.c b/model_brush.c index 8276e844..02b137db 100644 --- a/model_brush.c +++ b/model_brush.c @@ -2978,21 +2978,21 @@ void Mod_Q1BSP_Load(model_t *mod, void *buffer, void *bufferend) { hullinfo.numhulls = 4; hullinfo.filehulls = 4; - VectorSet (hullinfo.hullsizes[0][0], -16, -16, -36); - VectorSet (hullinfo.hullsizes[0][1], 16, 16, 36); - VectorSet (hullinfo.hullsizes[1][0], -32, -32, -32); - VectorSet (hullinfo.hullsizes[1][1], 32, 32, 32); - VectorSet (hullinfo.hullsizes[2][0], -16, -16, -18); - VectorSet (hullinfo.hullsizes[2][1], 16, 16, 18); + VectorSet (hullinfo.hullsizes[1][0], -16, -16, -36); + VectorSet (hullinfo.hullsizes[1][1], 16, 16, 36); + VectorSet (hullinfo.hullsizes[2][0], -32, -32, -32); + VectorSet (hullinfo.hullsizes[2][1], 32, 32, 32); + VectorSet (hullinfo.hullsizes[3][0], -16, -16, -18); + VectorSet (hullinfo.hullsizes[3][1], 16, 16, 18); } else { hullinfo.numhulls = 3; hullinfo.filehulls = 4; - VectorSet (hullinfo.hullsizes[0][0], -16, -16, -24); - VectorSet (hullinfo.hullsizes[0][1], 16, 16, 32); - VectorSet (hullinfo.hullsizes[1][0], -32, -32, -24); - VectorSet (hullinfo.hullsizes[1][1], 32, 32, 64); + VectorSet (hullinfo.hullsizes[1][0], -16, -16, -24); + VectorSet (hullinfo.hullsizes[1][1], 16, 16, 32); + VectorSet (hullinfo.hullsizes[2][0], -32, -32, -24); + VectorSet (hullinfo.hullsizes[2][1], 32, 32, 64); } // read lumps -- 2.39.2