mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
Simplify conditions in bfirst_search_try()
git-svn-id: https://svn.eduke32.com/eduke32@7568 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b7d06c0bd8
commit
c8eb1d0368
1 changed files with 1 additions and 3 deletions
|
@ -10950,9 +10950,7 @@ void bfirst_search_init(int16_t * const list, uint8_t * const bitmap, int32_t *
|
|||
|
||||
void bfirst_search_try(int16_t * const list, uint8_t * const bitmap, int32_t * const eltnumptr, int const elt)
|
||||
{
|
||||
if (elt < 0)
|
||||
return;
|
||||
else if (bitmap_test(bitmap, elt)==0)
|
||||
if (elt >= 0 && bitmap_test(bitmap, elt)==0)
|
||||
{
|
||||
bitmap_set(bitmap, elt);
|
||||
list[(*eltnumptr)++] = elt;
|
||||
|
|
Loading…
Reference in a new issue