mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
removed unnecessary alarm checks
This commit is contained in:
parent
03eaa2c033
commit
a3e0ae890b
@ -191,8 +191,11 @@ void UnitUpdater::updateUnitCommand(Unit *unit) {
|
||||
if(unit->isOperative() && (!(cc==ccStop || cc==ccAttack)) )
|
||||
{//stop and attack already check for themselves
|
||||
Unit *sighted;
|
||||
if(unit->getTeam()==world->getThisTeamIndex()){
|
||||
// check only needed for alarm sound, so its enough to check teammates units
|
||||
attackerOnSight(unit, &sighted);
|
||||
}
|
||||
}
|
||||
unit->getCurrCommand()->getCommandType()->update(this, unit);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user