Reversed a ruinous change.
Dur... event times can be negative, and yet here I am changing it to unsigned.
This commit is contained in:
parent
3c35f4043d
commit
a2e2207a67
|
@ -68,7 +68,7 @@ typedef struct Engine_ {
|
|||
|
||||
// Times the mission normally
|
||||
Uint32 counter2;
|
||||
Uint32 timeTaken; // In seconds
|
||||
int timeTaken; // In seconds
|
||||
|
||||
// For missions with a time limit
|
||||
int timeMission;
|
||||
|
|
|
@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
typedef struct Event_ {
|
||||
|
||||
Uint32 time;
|
||||
int time;
|
||||
int face;
|
||||
char message[255];
|
||||
int entity;
|
||||
|
|
|
@ -911,10 +911,9 @@ void missionFinishedScreen()
|
|||
|
||||
game.timeTaken += engine.timeTaken;
|
||||
|
||||
snprintf(temp, sizeof temp, "Mission Time: %2lu:%02lu:%02lu",
|
||||
(unsigned long)(engine.timeTaken / 3600),
|
||||
(unsigned long)((engine.timeTaken / 60) % 60),
|
||||
(unsigned long)(engine.timeTaken % 60));
|
||||
snprintf(temp, sizeof temp, "Mission Time: %2d:%02d:%02d",
|
||||
engine.timeTaken / 3600, (engine.timeTaken / 60) % 60,
|
||||
engine.timeTaken % 60);
|
||||
|
||||
screen_renderString(temp, -1, 500, FONT_WHITE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue