diff options
-rw-r--r-- | src/cmd3.cc | 6 | ||||
-rw-r--r-- | src/z-term.c | 7 | ||||
-rw-r--r-- | src/z-term.h | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/cmd3.cc b/src/cmd3.cc index 06300982..154dd7b1 100644 --- a/src/cmd3.cc +++ b/src/cmd3.cc @@ -2079,7 +2079,7 @@ void do_cmd_html_dump() if (!get_string("File(you can post it to http://angband.oook.cz/): ", tmp_val, 80)) { /* Now restore the screen to initial state */ - Term_load_from(save, TRUE); + Term_load_from(save); Term_fresh(); return; } @@ -2090,14 +2090,14 @@ void do_cmd_html_dump() if (!get_string("File: ", tmp_val, 80)) { /* Now restore the screen to initial state */ - Term_load_from(save, TRUE); + Term_load_from(save); Term_fresh(); return; } } /* Now restore the screen to dump it */ - Term_load_from(save, TRUE); + Term_load_from(save); if (html) html_screenshot(tmp_val); diff --git a/src/z-term.c b/src/z-term.c index 891c10f3..8a1732c3 100644 --- a/src/z-term.c +++ b/src/z-term.c @@ -1607,7 +1607,7 @@ errr Term_load(void) /* * Same as previous but allow to save more than one */ -errr Term_load_from(term_win *save, bool_ final) +errr Term_load_from(term_win *save) { int y; @@ -1636,10 +1636,7 @@ errr Term_load_from(term_win *save, bool_ final) Term->y2 = h - 1; /* Free is requested */ - if (final) - { - free(save); - } + free(save); /* Success */ return (0); diff --git a/src/z-term.h b/src/z-term.h index a52a5c27..241e3d76 100644 --- a/src/z-term.h +++ b/src/z-term.h @@ -277,7 +277,7 @@ extern errr Term_inkey(char *ch, bool_ wait, bool_ take); extern errr Term_save(void); extern term_win* Term_save_to(void); extern errr Term_load(void); -extern errr Term_load_from(term_win *save, bool_ final); +extern errr Term_load_from(term_win *save); extern errr Term_resize(int w, int h); |