Commit Graph

4 Commits

Author SHA1 Message Date
Kevin Shanahan
a475651b54 entities: push down constness of entities where possible
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>
2012-11-25 15:49:46 +10:30
Kevin Shanahan
15ee03733e build: don't use typedefs for forward declarations
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>
2012-11-19 08:32:41 +10:30
Kevin Shanahan
a3892ec40d render: Remove global currententity
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>
2012-10-22 13:40:58 +10:30
Kevin Shanahan
23d81d22d7 Move r_shared.h to common include dir
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-20 17:20:56 +10:30