summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dungeon.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dungeon.cc b/src/dungeon.cc
index 57c592c..db504f5 100644
--- a/src/dungeon.cc
+++ b/src/dungeon.cc
@@ -5123,11 +5123,9 @@ void play_game(bool_ new_game)
/* Make sure main term is active */
Term_activate(angband_term[0]);
- /* Initialise the resize hook XXX XXX XXX */
+ /* Initialise the resize hooks for all the terminals */
angband_term[0]->resize_hook = resize_map;
-
- /* XXX XXX XXX hardcoded number of terms */
- for (i = 1; i < 8; i++)
+ for (i = 1; i < ANGBAND_TERM_MAX; i++)
{
if (angband_term[i])
{