summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
committerBardur Arantsson <bardur@scientician.net>2015-12-11 08:09:30 +0100
commite4b4f4730a2fb39da766892adbf3419bf5e7f48f (patch)
tree39571ee29b00eef0f5a1c6e500e649f54f377436
parent158518061b09bb478140ede11c21bd1536814e0e (diff)
Remove redundant parameter from Term_load_from()
-rw-r--r--src/cmd3.cc6
-rw-r--r--src/z-term.c7
-rw-r--r--src/z-term.h2
3 files changed, 6 insertions, 9 deletions
diff --git a/src/cmd3.cc b/src/cmd3.cc
index 0630098..154dd7b 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 891c10f..8a1732c 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 a52a5c2..241e3d7 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);