-rw-r--r-- | src/controller/exp004processhits.c | 7 | ||||
-rw-r--r-- | src/controller/exp004processhits.h | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/controller/exp004processhits.c b/src/controller/exp004processhits.c index 418f23a..72daa2f 100644 --- a/src/controller/exp004processhits.c +++ b/src/controller/exp004processhits.c @@ -3,7 +3,6 @@ #include "../model/map_geometry.h" #include "exp004processhits.h" #include "selsave.h" -#include <stdio.h> /* * A simple alias to make the code more readable. @@ -15,11 +14,9 @@ * [Angel,2008,pp80-81]. */ void -exp004processhits (GLint hits, GLuint buffer[]) +exp004processhits (const GLint hits, const GLuint* hitlist) { - GLuint *hitlist = buffer; - - for (int i = 0; i < hits; i++) + for (unsigned int i = 0; i < hits; i++) { hitlist += 3; |