diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-04-14 06:39:21 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-04-14 06:39:21 +0200 |
commit | 9dc0b42341f8c7ffbf28c5c7386a19919cde5d47 (patch) | |
tree | 040626a71bc64a6b5322e1d7261a63fa9e038a63 /src/cmd5.cc | |
parent | e8345c7da1e3b62dec011798a03d25c2f23f9d60 (diff) |
Rename "pval" parameter to "spell_idx" for clarity
Diffstat (limited to 'src/cmd5.cc')
-rw-r--r-- | src/cmd5.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd5.cc b/src/cmd5.cc index aea592ab..4aaceda7 100644 --- a/src/cmd5.cc +++ b/src/cmd5.cc @@ -112,7 +112,7 @@ bool_ is_magestaff() } -static void browse_school_spell(int book, int pval, object_type *o_ptr) +static void browse_school_spell(int book, int spell_idx, object_type *o_ptr) { int i; int num = 0, where = 1; @@ -134,13 +134,13 @@ static void browse_school_spell(int book, int pval, object_type *o_ptr) Term_save(); /* Display a list of spells */ - where = print_book(book, pval, o_ptr); + where = print_book(book, spell_idx, o_ptr); /* Get a spell from the user */ while (get_com(out_val, &choice)) { /* Display a list of spells */ - where = print_book(book, pval, o_ptr); + where = print_book(book, spell_idx, o_ptr); /* Note verify */ ask = (isupper(choice)); @@ -162,8 +162,8 @@ static void browse_school_spell(int book, int pval, object_type *o_ptr) Term_load(); /* Display a list of spells */ - where = print_book(book, pval, o_ptr); - print_spell_desc(spell_x(book, pval, i), where); + where = print_book(book, spell_idx, o_ptr); + print_spell_desc(spell_x(book, spell_idx, i), where); } |