Static analysis over ioquake3 code

Hi Guys,

I have run PVS studio (as an experiment) over ioquake3 code.
It has found many issues like array out of bounds, always true/false expressions, identical if/else branches and so on.
I hope it can be helpful to identify real bugs.
The list is not short and probably should be resolved in several batches.
This is the report

Also i have raised an issue on github