X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fvb_lib.c;h=f9372a1ae10774b7e664f78cb32d7fa686f75587;hb=34e8c8894f9aa655a87577c946c31a3f9b6134c5;hp=5c1dae75010089def694009c81b8c0c7162ed039;hpb=3c080c7b33b6dfcc6e0039b592c5f268535873e7;p=rocksndiamonds.git diff --git a/src/game_sp/vb_lib.c b/src/game_sp/vb_lib.c index 5c1dae75..f9372a1a 100644 --- 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) { - fseek(file, offset - 1, SEEK_SET); + if (offset != -1) + fseek(file, offset - 1, SEEK_SET); while (num_bytes--) *(byte *)buffer++ = fgetc(file); @@ -196,7 +197,7 @@ int FileLen(char *a) } } -long GetTickCount() +long MyGetTickCount() { return random_linux_libc(RANDOM_SIMPLE); } @@ -206,17 +207,16 @@ int GetAttr(char *a) return 0; } -void DoEvents() -{ - return; -} - void SaveSetting(const char * a, const char *b, char *c, int d) { return; } +#if 0 + long GetTempPath(long a, char *b) { return 0; } + +#endif