(main,mobility_check,upda,turn,rea,mobupdate,ef_open,logerror,
emp_config,gamedown,show_motd,match_user,typed_wu, delete_old_announcements) [_WIN32]: switch the default file mode to binary to match POSIX. Remove the now unneccessary ifdef for the open/fopen. Add text mode for user files (econfig/auth).
This commit is contained in:
parent
f6e78f4589
commit
1a8488bc45
13 changed files with 14 additions and 65 deletions
|
@ -158,11 +158,7 @@ gamedown(void)
|
|||
|
||||
if (player->god)
|
||||
return 0;
|
||||
#if !defined(_WIN32)
|
||||
if ((downf = open(downfil, O_RDONLY, 0)) < 0)
|
||||
#else
|
||||
if ((downf = open(downfil, O_RDONLY | O_BINARY, 0)) < 0)
|
||||
#endif
|
||||
return 0;
|
||||
if (read(downf, (s_char *)&tgm, sizeof(tgm)) != sizeof(tgm)) {
|
||||
logerror("bad header on login message (downfil)");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue