projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20100218-1-src
[rocksndiamonds.git]
/
src
/
game_sp
/
vb_lib.c
diff --git
a/src/game_sp/vb_lib.c
b/src/game_sp/vb_lib.c
index 5c1dae75010089def694009c81b8c0c7162ed039..9381b6605adc3de276b3debd020e51a50793bc61 100644
(file)
--- a/
src/game_sp/vb_lib.c
+++ b/
src/game_sp/vb_lib.c
@@
-91,7
+91,8
@@
boolean STRING_IS_LIKE(char *a, char *b)
void FILE_GET(FILE *file, int offset, void *buffer, int num_bytes)
{
void FILE_GET(FILE *file, int offset, void *buffer, int num_bytes)
{
- fseek(file, offset - 1, SEEK_SET);
+ if (offset != -1)
+ fseek(file, offset - 1, SEEK_SET);
while (num_bytes--)
*(byte *)buffer++ = fgetc(file);
while (num_bytes--)
*(byte *)buffer++ = fgetc(file);
@@
-196,7
+197,7
@@
int FileLen(char *a)
}
}
}
}
-long GetTickCount()
+long
My
GetTickCount()
{
return random_linux_libc(RANDOM_SIMPLE);
}
{
return random_linux_libc(RANDOM_SIMPLE);
}
@@
-216,7
+217,11
@@
void SaveSetting(const char * a, const char *b, char *c, int d)
return;
}
return;
}
+#if 0
+
long GetTempPath(long a, char *b)
{
return 0;
}
long GetTempPath(long a, char *b)
{
return 0;
}
+
+#endif