Fixed a bug with control limits.

Sorry I made a big fucking mess of the code. I'll fix it later tonight
hopefully. Note that there's a bug where if you switch plans between A/B
and C before the animation finishes, shit gets fucked up. If someone
feels nice they should fix that. Maybe we just shouldn't have an
animation?