small optimization
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4241 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -158,7 +158,7 @@ int closestent() // used for delent and edit mode ent display
|
||||
bdist = dist;
|
||||
}
|
||||
}
|
||||
if(best < 0) break;
|
||||
if(best < 0 || bcnt == 1) break;
|
||||
if(bcnt) clentsel %= bcnt;
|
||||
}
|
||||
return best;
|
||||
|
||||
Reference in New Issue
Block a user