Fixed error in writing PLR-file since PHYSFS_close returns non-zero in success instead of zero like fclose
This commit is contained in:
parent
8eb5c965d2
commit
453d0b6045
|
@ -4,6 +4,7 @@ D1X-Rebirth Changelog
|
||||||
--------
|
--------
|
||||||
main/newdemo.c: make sure the right error message is shown if it can't open a demo
|
main/newdemo.c: make sure the right error message is shown if it can't open a demo
|
||||||
include/args.h, include/gr.h, main/newmenu.c, main/newmenu.h, main/network.c, main/multi.c, main/inferno.c, main/gamefont.c, main/menu.c, main/gamefont.h, main/netdrv_udp.c, main/playsave.c, main/titles.c, main/kmatrix.c, main/controls.c, main/paging.c, main/hud.c, main/state.c, main/reorder.c, main/slew.c, main/gameseq.c, main/scores.c, main/automap.c, main/game.c, main/gauges.c, main/game.h, main/kconfig.c, main/credits.c, misc/args.c, 2d/font.c, SConstruct, d1x.ini, arch/ogl/ogl.c, arch/ogl/gr.c, arch/sdl/gr.c: Reworked fonts routines - makes easier to expand and scale correctly; Reworked menus with better border scaling, improved rendering and cleanups; Improved font priniting ingame, better alignment; Reworked Netgame list; Real Doublebuffering in SDL-mode; Removed old and unused sources
|
include/args.h, include/gr.h, main/newmenu.c, main/newmenu.h, main/network.c, main/multi.c, main/inferno.c, main/gamefont.c, main/menu.c, main/gamefont.h, main/netdrv_udp.c, main/playsave.c, main/titles.c, main/kmatrix.c, main/controls.c, main/paging.c, main/hud.c, main/state.c, main/reorder.c, main/slew.c, main/gameseq.c, main/scores.c, main/automap.c, main/game.c, main/gauges.c, main/game.h, main/kconfig.c, main/credits.c, misc/args.c, 2d/font.c, SConstruct, d1x.ini, arch/ogl/ogl.c, arch/ogl/gr.c, arch/sdl/gr.c: Reworked fonts routines - makes easier to expand and scale correctly; Reworked menus with better border scaling, improved rendering and cleanups; Improved font priniting ingame, better alignment; Reworked Netgame list; Real Doublebuffering in SDL-mode; Removed old and unused sources
|
||||||
|
main/playsave: Fixed error in writing PLR-file since PHYSFS_close returns non-zero in success instead of zero like fclose
|
||||||
|
|
||||||
20080221
|
20080221
|
||||||
--------
|
--------
|
||||||
|
|
|
@ -794,7 +794,7 @@ int read_player_file()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PHYSFS_close(file) && errno_ret==EZERO)
|
if (!PHYSFS_close(file) && errno_ret==EZERO)
|
||||||
errno_ret = errno;
|
errno_ret = errno;
|
||||||
|
|
||||||
if ( info.saved_game_version != 7 ) {
|
if ( info.saved_game_version != 7 ) {
|
||||||
|
@ -988,7 +988,7 @@ int write_player_file()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PHYSFS_close(file))
|
if (!PHYSFS_close(file))
|
||||||
errno_ret = errno;
|
errno_ret = errno;
|
||||||
|
|
||||||
if (errno_ret != EZERO) {
|
if (errno_ret != EZERO) {
|
||||||
|
|
Loading…
Reference in a new issue