Skip to content

Commit

Permalink
Use time_t instead of long for timestamps.
Browse files Browse the repository at this point in the history
  • Loading branch information
acaudwell committed Nov 30, 2009
1 parent 8d37ea5 commit fd3cf51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ with the Code Blocks IDE (www.codeblocks.org).
6. Changes
==========

0.19:
* Use time_t instead of long for timestamps.

0.18:
* Fixed camera movement while the simulation is paused.

Expand Down
2 changes: 1 addition & 1 deletion src/commitlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class RCommitFile {
class RCommit {
vec3f fileColour(std::string filename);
public:
long timestamp;
time_t timestamp;
std::string username;

std::list<RCommitFile> files;
Expand Down
2 changes: 1 addition & 1 deletion src/gource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ void Gource::logic(float t, float dt) {
subseconds -= (int) subseconds;
}

currtime += seconds;
currtime += seconds;

// delete files
for(std::vector<RFile*>::iterator it = gGourceRemovedFiles.begin(); it != gGourceRemovedFiles.end(); it++) {
Expand Down
4 changes: 2 additions & 2 deletions src/gource.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef GOURCE_H
#define GOURCE_H

#define GOURCE_VERSION "0.18"
#define GOURCE_VERSION "0.19"

#ifdef _WIN32
#include "windows.h"
Expand Down Expand Up @@ -109,8 +109,8 @@ class Gource : public SDLApp {
int frameskip;
int framecount;

time_t currtime;
float runtime;
long currtime;
float subseconds;

float splash;
Expand Down

0 comments on commit fd3cf51

Please sign in to comment.