From a6990fb2b6eb3223645b7198664901fb7c36585f Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sun, 10 Feb 2013 16:43:37 +1030 Subject: [PATCH] qbsp: pass entity into AddToBounds Signed-off-by: Kevin Shanahan --- qbsp/brush.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qbsp/brush.c b/qbsp/brush.c index 642fff85..47a652e2 100644 --- a/qbsp/brush.c +++ b/qbsp/brush.c @@ -107,15 +107,15 @@ AddToBounds ================= */ static void -AddToBounds(vec3_t v) +AddToBounds(mapentity_t *ent, const vec3_t point) { int i; for (i = 0; i < 3; i++) { - if (v[i] < pCurEnt->mins[i]) - pCurEnt->mins[i] = v[i]; - if (v[i] > pCurEnt->maxs[i]) - pCurEnt->maxs[i] = v[i]; + if (point[i] < ent->mins[i]) + ent->mins[i] = point[i]; + if (point[i] > ent->maxs[i]) + ent->maxs[i] = point[i]; } } @@ -864,8 +864,8 @@ Brush_LoadEntity(void) other = b; } - AddToBounds(b->mins); - AddToBounds(b->maxs); + AddToBounds(pCurEnt, b->mins); + AddToBounds(pCurEnt, b->maxs); } // add all of the water textures at the start