summaryrefslogtreecommitdiff
path: root/src/interface.c
diff options
context:
space:
mode:
authorCracker64 <cracker642@gmail.com>2011-01-18 00:11:30 (GMT)
committer Cracker64 <cracker642@gmail.com>2011-01-18 00:11:30 (GMT)
commite1eeaf9e9a1cd5f500cc262e871d36a341782eca (patch)
tree5f1fe3073265bc67fc7477252cac0ad80ca8aba7 /src/interface.c
parent926450a9a3db03d0abd1afcff4ea0269415c0ced (diff)
downloadpowder-e1eeaf9e9a1cd5f500cc262e871d36a341782eca.zip
powder-e1eeaf9e9a1cd5f500cc262e871d36a341782eca.tar.gz
test with increased element limit, there seems to be no performace decrease to me anyway. element limit of 4096
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index b37c3e9..0e528ec 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -1659,7 +1659,7 @@ void menu_ui_v3(pixel *vid_buf, int i, int *sl, int *sr, int b, int bq, int mx,
{
drawtext(vid_buf, XRES-textwidth((char *)msections[i].name)-BARSIZE, sy-10, (char *)msections[i].name, 255, 255, 255, 255);
}
- else if(i==SC_WALL||(i==SC_SPECIAL&&h>=UI_WALLSTART))
+ else if(i==SC_WALL||(i==SC_SPECIAL&&h>=UI_WALLSTART&&h<=UI_WALLSTART+UI_WALLCOUNT))
{
drawtext(vid_buf, XRES-textwidth((char *)mwalls[h-UI_WALLSTART].descs)-BARSIZE, sy-10, (char *)mwalls[h-UI_WALLSTART].descs, 255, 255, 255, 255);
}