Make repair animation pause if player has no money.

This implements #5322. I tested it and seems to work. When player has no money, repair animation is paused and when he gets money again, repair animation continues from the paused frame.