X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=5aac42f888b26a257973d6c8b44b790e7db7163b;hb=3b0023fd3eacaecffa0ae6c9107c11d3abd4ac6c;hp=7d0351a6f804a0a823f3d8dafb936b147294a4fa;hpb=b124c56f1cf069a6c77802919b1a9cbbedb77029;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 7d0351a6..5aac42f8 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -93,6 +93,8 @@ void InitProgramInfo(char *argv0, program.version_major = VERSION_MAJOR(program_version); program.version_minor = VERSION_MINOR(program_version); program.version_patch = VERSION_PATCH(program_version); + + program.error_filename = getErrorFilename(ERROR_BASENAME); } void InitExitFunction(void (*exit_function)(int)) @@ -113,6 +115,9 @@ void InitPlatformDependentStuff(void) { #if defined(PLATFORM_MSDOS) _fmode = O_BINARY; +#endif + +#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS) initErrorFile(); #endif @@ -818,6 +823,9 @@ static void CreateScaledBitmaps(Bitmap *old_bitmap, int zoom_factor, else tmp_bitmap_1 = old_bitmap; + /* this is only needed to make compilers happy */ + tmp_bitmap_2 = tmp_bitmap_8 = NULL; + if (create_small_bitmaps) { /* calculate new image dimensions for small images */