summaryrefslogtreecommitdiff
path: root/src/xtra1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
committerBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
commitc0d3818fa0a3859d5f6cd923488ac3244d3c00d6 (patch)
treee4241de99a10fd68a138263f0a2b29ba52c7a42b /src/xtra1.cc
parentae90af873f4cd3450d5e04a65e84040b4ddad1bd (diff)
Use ANGBAND_TERM_MAX instead of literal 8
(This won't cover nearly all cases, but it helps a little.)
Diffstat (limited to 'src/xtra1.cc')
-rw-r--r--src/xtra1.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xtra1.cc b/src/xtra1.cc
index 7141630e..05bf40b3 100644
--- a/src/xtra1.cc
+++ b/src/xtra1.cc
@@ -1087,7 +1087,7 @@ static void fix_inven()
int j;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1121,7 +1121,7 @@ static void fix_equip()
int j;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1153,7 +1153,7 @@ static void fix_player()
int j;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1193,7 +1193,7 @@ void fix_message()
int x, y;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1246,7 +1246,7 @@ static void fix_overhead()
int cy, cx;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1279,7 +1279,7 @@ static void fix_monster()
int j;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1315,7 +1315,7 @@ static void fix_object()
int j;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -1355,7 +1355,7 @@ static void fix_m_list()
std::vector<u16b>(r_info.size(), 0);
/* Scan windows */
- for (std::size_t j = 0; j < 8; j++)
+ for (std::size_t j = 0; j < ANGBAND_TERM_MAX; j++)
{
term *old = Term;
@@ -4226,7 +4226,7 @@ void window_stuff()
if (!p_ptr->window) return;
/* Scan windows */
- for (j = 0; j < 8; j++)
+ for (j = 0; j < ANGBAND_TERM_MAX; j++)
{
/* Save usable flags */
if (angband_term[j]) mask |= window_flag[j];