Skip to content

Commit

Permalink
Return _off stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
UncannyFish committed Jul 3, 2022
1 parent 3cd7e53 commit 14cb6c9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/renderer/tr_ghoul2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2437,6 +2437,15 @@ qboolean R_LoadMDXM( model_t *mod, void *buffer, const char *mod_name, qboolean
LL(surfInfo->numChildren);
LL(surfInfo->parentIndex);

if ( isANewModelFile )
{
Q_strlwr(surfInfo->name); //just in case
if ( !strcmp( &surfInfo->name[strlen(surfInfo->name)-4],"_off") )
{
surfInfo->name[strlen(surfInfo->name)-4]=0; //remove "_off" from name
}
}

// do all the children indexs
for (j=0; j<surfInfo->numChildren; j++)
{
Expand Down

0 comments on commit 14cb6c9

Please sign in to comment.