summaryrefslogtreecommitdiff
path: root/src/monster1.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-26 06:50:06 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-26 06:50:06 +0200
commitca71ccff098e4eec97480d2a08773a06629cc66e (patch)
tree631fad99f61bc6bdcd4ee516845a7d3791bc598d /src/monster1.cc
parent1f8b86786fd33ee3cbdc62bdf2f129dba793b429 (diff)
Simplify PR_* redraw code and remove direct references to Term members
Diffstat (limited to 'src/monster1.cc')
-rw-r--r--src/monster1.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monster1.cc b/src/monster1.cc
index 21d2ac15..8fb8b4a1 100644
--- a/src/monster1.cc
+++ b/src/monster1.cc
@@ -1616,9 +1616,11 @@ void monster_description_out(int r_idx, int ego)
void display_roff(int r_idx, int ego)
{
int y;
+ int hgt;
+ Term_get_size(nullptr, &hgt);
/* Erase the window */
- for (y = 0; y < Term->hgt; y++)
+ for (y = 0; y < hgt; y++)
{
/* Erase the line */
Term_erase(0, y, 255);