summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-12-12 17:46:21 -0300
committerJesusaves <cpntb1@ymail.com>2019-12-12 17:46:21 -0300
commita3623bfd96a44650ca7e8f684a054d312f1af92a (patch)
tree2b98f9821f317ccd6a2ab159133f822a09d0f8f4 /npc
parent82839e7d1d2b8429dcbbac97a6b75e347c3b0476 (diff)
downloadserverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.gz
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.bz2
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.tar.xz
serverdata-a3623bfd96a44650ca7e8f684a054d312f1af92a.zip
The bug: a missing return
Diffstat (limited to 'npc')
-rw-r--r--npc/commands/ucp.txt4
-rw-r--r--npc/functions/main.txt1
2 files changed, 3 insertions, 2 deletions
diff --git a/npc/commands/ucp.txt b/npc/commands/ucp.txt
index 89d533b78..00e46af92 100644
--- a/npc/commands/ucp.txt
+++ b/npc/commands/ucp.txt
@@ -161,7 +161,7 @@ function script UserCtrlPanel {
// GSET_LONGMENU_DENSITY
// How many nexts should be queued in a density list
// (use higher values if you have few recipes or can scroll)
- if (GSET_LONGMENU_DENSITY)
+ if (!GSET_LONGMENU_DENSITY)
mes l("Long Text Wall Density: ") + col(l("Normal"), 1);
else
mes l("Long Text Wall Density: ") + col(l("Compact")+": "+GSET_LONGMENU_DENSITY, 2);
@@ -214,7 +214,7 @@ function script UserCtrlPanel {
case 3:
GSET_DAILYREWARD_SILENT=!GSET_DAILYREWARD_SILENT; break;
case 4:
- if (GSET_LONGMENU_DENSITY > 5)
+ if (GSET_LONGMENU_DENSITY >= 5)
GSET_LONGMENU_DENSITY=0;
else
GSET_LONGMENU_DENSITY+=1;
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 95587aa70..5df1999d2 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -19,6 +19,7 @@ function script dnext {
} else {
@dnext+=1;
}
+ return;
}
function script menuaction {