(wrmakesrc,wripglob,wrgamesdef,info,apro,mobupdate,rea,turn
upda,ef_open,logerror,emp_config,match_user,show_motd,gamedown, typed_wu,delete_old_announcements,mobility_check,mobility_init, allocate_memory,write_newcap_script,main,files,fairland,doconfig,) [_WIN32]: Switchback to default mode of text. "t" (text) is not included the ISO/ANSI C standard but "b" (binary) is included.
This commit is contained in:
parent
d4af51c9e2
commit
55e6aca9e0
17 changed files with 28 additions and 41 deletions
|
@ -194,10 +194,6 @@ main(int argc, char *argv[])
|
|||
char tbuf[512];
|
||||
int i = 0;
|
||||
|
||||
#if defined(_WIN32)
|
||||
_fmode = _O_BINARY;
|
||||
#endif
|
||||
|
||||
rnd_seed = time(NULL);
|
||||
|
||||
while ((opt = getopt(argc, argv, "ae:ioqs:R:")) != EOF) {
|
||||
|
@ -411,7 +407,7 @@ allocate_memory(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
sect_fptr = fopen(empfile[EF_SECTOR].file, "w");
|
||||
sect_fptr = fopen(empfile[EF_SECTOR].file, "wb");
|
||||
if (sect_fptr == NULL) {
|
||||
perror(empfile[EF_SECTOR].file);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue