Code Cleaning, todos added

This commit is contained in:
Michael Chen
2017-12-27 00:42:06 +01:00
parent 7cc0621aa5
commit 1b53c9f862
5 changed files with 68 additions and 63 deletions

View File

@ -338,7 +338,7 @@ void ENEMY_Update(Enemy * enm, Ship * targets, int targetCount){
BULLET_UpdateEnemy(&((enm->Bullets)[i]), targets, &targetCount);
}
if ((enm->TurnCooldown)-- <= 0){
if ((enm->TurnCooldown)-- <= 0) {
(enm->TurnCooldown) = (rand() % ENEMY_MaxTurnIntervale);
(enm->Momentum) = getScaledDirectionalUnitVector((rand() % 360), fmod((double)rand(), ENEMY_MaxSpeed / 2.0f) + (ENEMY_MaxSpeed / 2.0f));
}