comparison arogue5/save.c @ 199:efdbeec0816d

Advanced Rogue 5: remove an unneeded fstat() call. The results of the call are no longer used to check for savefile copying.
author John "Elwin" Edwards
date Tue, 11 Aug 2015 16:19:04 -0400
parents 7795b0938921
children 56e748983fa8
comparison
equal deleted inserted replaced
198:7795b0938921 199:efdbeec0816d
132 wmove(cw, LINES-1, 0); 132 wmove(cw, LINES-1, 0);
133 draw(cw); 133 draw(cw);
134 fwrite("junk", 1, 5, savef); 134 fwrite("junk", 1, 5, savef);
135 fseek(savef, 0L, 0); 135 fseek(savef, 0L, 0);
136 /* _endwin = TRUE; */ 136 /* _endwin = TRUE; */
137 fstat(fileno(savef), &sbuf);
138 137
139 encwrite(version,strlen(version)+1,savef); 138 encwrite(version,strlen(version)+1,savef);
140 sprintf(prbuf,"%d x %d\n", LINES, COLS); 139 sprintf(prbuf,"%d x %d\n", LINES, COLS);
141 encwrite(prbuf,80,savef); 140 encwrite(prbuf,80,savef);
142 141