Display time played correctly.

This commit is contained in:
Steve 2018-03-01 08:24:05 +00:00
parent 2634a6fd97
commit 7037b40c7b
6 changed files with 15 additions and 16 deletions

View File

@ -21,13 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "common.h"
#include <time.h>
App app;
Camera camera;
Colors colors;
Dev dev;
Entity *self;
Game game;
World world;
extern void awardTrophies(void);
extern void cleanup(void);
extern void doTrophyAlerts(void);
@ -44,3 +37,10 @@ extern void presentScene(void);
extern void saveScreenshot(char *name);
extern void saveTrophyScreenshot(void);
App app;
Camera camera;
Colors colors;
Dev dev;
Entity *self;
Game game;
World world;

View File

@ -19,12 +19,15 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
#include "i18n.h"
static HashTable table;
char *getTranslatedString(char *);
void setLanguage(char *, char *);
void cleanupLanguage(void);
static int hashCode(char *);
static void put(char *, char *);
static void initTable(void);
static HashTable table;
void setLanguage(char *applicationName, char *languageCode)
{
char language[MAX_LINE_LENGTH], c[MAX_LINE_LENGTH];

View File

@ -23,8 +23,4 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
#include <windows.h>
#endif
char *getTranslatedString(char *);
void setLanguage(char *, char *);
void cleanupLanguage(void);
#define TABLE_SIZE 255

View File

@ -40,7 +40,7 @@ void initAtlasTest(void)
createScreenshotFolder();
test = 1;
test = 2;
switch (test)
{

View File

@ -65,8 +65,8 @@ char *timeToString(int seconds, int showHours)
{
int hours, minutes;
minutes = seconds / 60;
hours = seconds / (FPS * FPS);
minutes = (seconds / FPS) % FPS;
seconds %= FPS;
if (showHours)

View File

@ -230,7 +230,7 @@ function recurseDir($dir)
{
recurseDir("$dir/$file");
}
else if (strstr($file, ".h") !== FALSE)
else if (strstr($file, ".h") !== FALSE && strstr($file, "main.h") === FALSE)
{
cleanHeader("$dir/$file");
}