Skip to content

Commit

Permalink
cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
DebrisHauler committed Oct 14, 2024
1 parent f14555d commit c8010a2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions main/modes/games/bigbug/entityManager_bigbug.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,10 @@ bb_entity_t* bb_createEntity(bb_entityManager_t* entityManager, bb_animationType
}
entity->cSquared = entity->halfWidth * entity->halfWidth + entity->halfHeight * entity->halfHeight;

if (entity != NULL)
{
entityManager->activeEntities++;
// if(entityManager->activeEntities % 10 == 0 || entityManager->activeEntities == MAX_ENTITIES){
// printf("%d/%d entities ^\n", entityManager->activeEntities, MAX_ENTITIES);
// }
}
entityManager->activeEntities++;
// if(entityManager->activeEntities % 10 == 0 || entityManager->activeEntities == MAX_ENTITIES){
// printf("%d/%d entities ^\n", entityManager->activeEntities, MAX_ENTITIES);
// }

return entity;
}
Expand Down

0 comments on commit c8010a2

Please sign in to comment.