Merge branch 'accurate' into portable

This commit is contained in:
Clownacy 2020-01-26 13:52:47 +00:00
commit 331d5a2d95

View file

@ -445,7 +445,7 @@ BOOL SaveTimeCounter(void)
sprintf(path, "%s/290.rec", gModulePath); sprintf(path, "%s/290.rec", gModulePath);
fp = fopen(path, "rb"); fp = fopen(path, "rb");
if (fp) if (fp != NULL)
{ {
// Read data // Read data
rec.counter[0] = File_ReadLE32(fp); rec.counter[0] = File_ReadLE32(fp);
@ -510,7 +510,7 @@ int LoadTimeCounter(void)
sprintf(path, "%s/290.rec", gModulePath); sprintf(path, "%s/290.rec", gModulePath);
fp = fopen(path, "rb"); fp = fopen(path, "rb");
if (!fp) if (fp == NULL)
return 0; return 0;
// Read data // Read data