Ostriv: Alpha 5 patch 9 hotfix 43

Had to do some really boring work on code refactoring, especially for livestock management which has been a fertile ground for various kinds of bugs for quite a long time. But as I said earlier the main priority is to r…