I'm not sure if my advice is sound since I'm not experienced in game making but, you can have an outside programmer take a look at the code first and see if they can do anything about it then work from there. Or contact the old programmer to ask them to explain the code.