posted 1 year ago
First, your formatting makes it difficult to follow your logic. Your switch statement appears to have some logic errors but weeding through that much poorly formatted code taxes the patience. Second, your variable names are cryptic and cause you to introduce bugs that could be easily avoided if you chose better names. Read line 132 again carefully and see if it's really doing what you think it's doing.