From a0f68d722b35689165e809c8b89497aab26bde07 Mon Sep 17 00:00:00 2001 From: onpon4 Date: Tue, 12 Jan 2016 10:41:42 -0500 Subject: [PATCH] Fixed type inconsistency. SDL_GetTicks() returns Uint32, but I was using the long int type, which could mean signed or unsigned, not to mention any size. Changed missionCompleteTimer and timeTaken to Uint32 for consistency. --- src/engine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.h b/src/engine.h index 2e0e8de..8339ecd 100644 --- a/src/engine.h +++ b/src/engine.h @@ -64,11 +64,11 @@ typedef struct Engine_ { int targetIndex; // Mission completion timer (allows for 4 seconds before leaving sector) - long missionCompleteTimer; + Uint32 missionCompleteTimer; // Times the mission normally Uint32 counter2; - long int timeTaken; // In seconds + Uint32 timeTaken; // In seconds // For missions with a time limit int timeMission;