fix Sajt's bug in q1bsp/hlbsp hullsizes (off by one on the hull index)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2005 10:39:45 +0000 (10:39 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2005 10:39:45 +0000 (10:39 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5718 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 8276e84..02b137d 100644 (file)
@@ -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