mail test / warnings in save.c

This commit is contained in:
keni
2011-12-29 20:23:00 +00:00
parent 3afd0f87fd
commit cbc1031d4e
+4 -4
View File
@@ -271,7 +271,7 @@ dosave0()
#endif #endif
ofd = open_levelfile(ltmp, whynot); ofd = open_levelfile(ltmp, whynot);
if (ofd < 0) { if (ofd < 0) {
HUP pline("%s", whynot); HUP pline1(whynot);
(void) close(fd); (void) close(fd);
(void) delete_savefile(); (void) delete_savefile();
HUP Strcpy(killer.name, whynot); HUP Strcpy(killer.name, whynot);
@@ -399,7 +399,7 @@ savestateinlock()
*/ */
fd = open_levelfile(0, whynot); fd = open_levelfile(0, whynot);
if (fd < 0) { if (fd < 0) {
pline("%s", whynot); pline1(whynot);
pline("Probably someone removed it."); pline("Probably someone removed it.");
Strcpy(killer.name, whynot); Strcpy(killer.name, whynot);
done(TRICKED); done(TRICKED);
@@ -411,7 +411,7 @@ savestateinlock()
Sprintf(whynot, Sprintf(whynot,
"Level #0 pid (%d) doesn't match ours (%d)!", "Level #0 pid (%d) doesn't match ours (%d)!",
hpid, hackpid); hpid, hackpid);
pline("%s", whynot); pline1(whynot);
Strcpy(killer.name, whynot); Strcpy(killer.name, whynot);
done(TRICKED); done(TRICKED);
} }
@@ -419,7 +419,7 @@ savestateinlock()
fd = create_levelfile(0, whynot); fd = create_levelfile(0, whynot);
if (fd < 0) { if (fd < 0) {
pline("%s", whynot); pline1(whynot);
Strcpy(killer.name, whynot); Strcpy(killer.name, whynot);
done(TRICKED); done(TRICKED);
return; return;