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:
ac_stef
2009-03-03 15:05:29 +00:00
parent 720f7c4651
commit 5626011fdc
+1 -1
View File
@@ -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;