Skip to content

Commit

Permalink
another bug in new clip stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
briancullinan2 committed Sep 11, 2024
1 parent e0e83ee commit f2c00c9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/qcommon/cm_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1411,14 +1411,15 @@ void CM_TransformedBoxTrace( trace_t *results, const vec3_t start, const vec3_t
#ifdef USE_BSP_MODELS
int j, numInlines, indexAdjusted;

// might intersect, so do an exact clip
indexAdjusted = CM_InlineModel (model);

// set the right map before entering trace
cmi = 0;
if(indexAdjusted < CM_NumInlineModels()) {

if(model < CM_NumInlineModels() || model == BOX_MODEL_HANDLE) {
indexAdjusted = model;
} else if (model != BOX_MODEL_HANDLE) {

// might intersect, so do an exact clip
indexAdjusted = CM_InlineModel (model);

for(j = 0; j < 64; j++) {
cmi = j;
numInlines = CM_NumInlineModels();
Expand Down

0 comments on commit f2c00c9

Please sign in to comment.