Code Cleaning, todos added
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user