Fixed autonav time resetting to work with *all* hostiles.

The previous method only worked for *enemies*, which meant that
other hostiles (normally generated by mission scripts) were being
ignored. The new method takes all hostiles into account.