Pass over the source and make as many references to entities as possible
const. This makes it much more obvious where we are actually making
modifications to the entity_t structure.
Mostly trivial, the only place where I did something other than add the
keyword "const" was in R_DrawBrushModel where we were working around the
reversed pitch bug.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
Didn't realise this is a C11 feature and makes some compilers unhappy.
Just use the struct names instead of the *_t typedefs.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
Finally we can see that currententity is only ever written and not
read so it is safe to remove.
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>