diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
commit | 0753dae11eee10dc063e3d494a2d9520e3532512 (patch) | |
tree | f092dfec4355591e3e36d04d064d1cc4c1244e9c /src | |
parent | f43e845258dda28106567b7c86f66d26d93bf0b7 (diff) |
Remove an instance of hardcoded terminal count
Diffstat (limited to 'src')
-rw-r--r-- | src/dungeon.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dungeon.cc b/src/dungeon.cc index 57c592cc..db504f59 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]) { |