diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-04-15 09:07:48 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 20:13:25 +0200 |
commit | 08a39076992d367194b6fce9853b1b8898936b24 (patch) | |
tree | efdfd0f9677662338596d109112eaddf378d525f | |
parent | 6b7047f796370199f357ed0b3bae6afa350c6ae9 (diff) |
Refactor: show_{equip,inven} argument is always FALSE.
-rw-r--r-- | src/cmd3.c | 4 | ||||
-rw-r--r-- | src/externs.h | 4 | ||||
-rw-r--r-- | src/files.c | 4 | ||||
-rw-r--r-- | src/object1.c | 16 |
4 files changed, 16 insertions, 12 deletions
@@ -32,7 +32,7 @@ void do_cmd_inven(void) item_tester_full = TRUE; /* Display the p_ptr->inventory */ - show_inven(FALSE); + show_inven(); /* Hack -- hide empty slots */ item_tester_full = FALSE; @@ -96,7 +96,7 @@ void do_cmd_equip(void) item_tester_full = TRUE; /* Display the equipment */ - show_equip(FALSE); + show_equip(); /* Hack -- undo the hack above */ item_tester_full = FALSE; diff --git a/src/externs.h b/src/externs.h index ccdc800d..68abfdc1 100644 --- a/src/externs.h +++ b/src/externs.h @@ -1143,8 +1143,8 @@ extern void inven_drop(int item, int amt, int dy, int dx, bool_ silent); extern bool_ item_tester_okay(object_type *o_ptr); extern void display_inven(void); extern void display_equip(void); -extern void show_inven(bool_ mirror); -extern void show_equip(bool_ mirror); +extern void show_inven(); +extern void show_equip(); extern void toggle_inven_equip(void); extern bool_ (*get_item_extra_hook)(int *cp); extern bool_ get_item(int *cp, cptr pmt, cptr str, int mode); diff --git a/src/files.c b/src/files.c index 3facb8ef..7c46d9c3 100644 --- a/src/files.c +++ b/src/files.c @@ -4604,7 +4604,7 @@ static void show_info(void) { Term_clear(); item_tester_full = TRUE; - show_equip(FALSE); + show_equip(); prt("You are using: -more-", 0, 0); if (inkey() == ESCAPE) return; } @@ -4614,7 +4614,7 @@ static void show_info(void) { Term_clear(); item_tester_full = TRUE; - show_inven(FALSE); + show_inven(); prt("You are carrying: -more-", 0, 0); if (inkey() == ESCAPE) return; } diff --git a/src/object1.c b/src/object1.c index 27c87d7f..7304c00a 100644 --- a/src/object1.c +++ b/src/object1.c @@ -4706,14 +4706,14 @@ void show_inven_aux(bool_ mirror, bool_ everything) } -void show_inven(bool_ mirror) +void show_inven() { - show_inven_aux(mirror, FALSE); + show_inven_aux(FALSE, FALSE); } -void show_equip(bool_ mirror) +void show_equip() { - show_equip_aux(mirror, FALSE); + show_equip_aux(FALSE, FALSE); } /* @@ -5546,7 +5546,9 @@ bool_ get_item_floor(int *cp, cptr pmt, cptr str, int mode) n2 = I2A(i2); /* Redraw if needed */ - if (command_see) show_inven(FALSE); + if (command_see) { + show_inven(); + } } /* Equipment screen */ @@ -5557,7 +5559,9 @@ bool_ get_item_floor(int *cp, cptr pmt, cptr str, int mode) n2 = I2A(e2 - INVEN_WIELD); /* Redraw if needed */ - if (command_see) show_equip(FALSE); + if (command_see) { + show_equip(); + } } /* Floor screen */ |