Reversed a ruinous change.

Dur... event times can be negative, and yet here I am changing it to
unsigned.
This commit is contained in:
onpon4 2016-01-12 14:43:42 -05:00
parent 3c35f4043d
commit a2e2207a67
3 changed files with 5 additions and 6 deletions

View File

@ -68,7 +68,7 @@ typedef struct Engine_ {
// Times the mission normally // Times the mission normally
Uint32 counter2; Uint32 counter2;
Uint32 timeTaken; // In seconds int timeTaken; // In seconds
// For missions with a time limit // For missions with a time limit
int timeMission; int timeMission;

View File

@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
typedef struct Event_ { typedef struct Event_ {
Uint32 time; int time;
int face; int face;
char message[255]; char message[255];
int entity; int entity;

View File

@ -911,10 +911,9 @@ void missionFinishedScreen()
game.timeTaken += engine.timeTaken; game.timeTaken += engine.timeTaken;
snprintf(temp, sizeof temp, "Mission Time: %2lu:%02lu:%02lu", snprintf(temp, sizeof temp, "Mission Time: %2d:%02d:%02d",
(unsigned long)(engine.timeTaken / 3600), engine.timeTaken / 3600, (engine.timeTaken / 60) % 60,
(unsigned long)((engine.timeTaken / 60) % 60), engine.timeTaken % 60);
(unsigned long)(engine.timeTaken % 60));
screen_renderString(temp, -1, 500, FONT_WHITE); screen_renderString(temp, -1, 500, FONT_WHITE);