AGM_Overheating: Calculate cooling while checking temperature

Otherwise weapon seemed never to cooldown until fired again.