1234
PVS-Studio: analyzing Doom 3 code
Opportunities in Non Contracting Environments
The scope of local variables. Murphy's Law The famous Murphy's Law says: Anything that can possibly go wrong, does. (Wikipedia page on Murphy's Law: 27s_law)
While-end loop used when You don't know number of loop iterations You do have a condition that you can test and stop looping when it is false. For example,