Fix ACTION_WAIT changing turret modes silently

Plus some minor formatting