20.12.2013, 21:53
I've looked that code over, it's designed very very poorly and will be always prone to many bugs because the author neglected the fact that you really need to create gamestate and playerstate conditions instead it's full of obfuscation and inadequate assumptions which will surely break game play.
You need to define every possible situation and the only way to do that using states then switch statements to make sure everything possible is defined this was simply not done so be warned there will always be a lot of issues.
You need to define every possible situation and the only way to do that using states then switch statements to make sure everything possible is defined this was simply not done so be warned there will always be a lot of issues.