summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/atcommand.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index e04c3f697..edb9b40ff 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/05
+ * Fixed @commands not showing the last available commands (unless the total
+ amount of commands is divisible by ten) [Skotlex]
* Added a npc-script-event cache to avoid looking up event-scripts every
time they need to be executed. Events cached are all those defined in
script_config (on login, logout, mapchange, death, kill, level up) [Skotlex]
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 115d4bd06..b57163abd 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1184,7 +1184,9 @@ int atcommand_commands(const int fd, struct map_session_data* sd,
memset(atcmd_output, 0, sizeof atcmd_output);
}
}
-
+ if (count%10)
+ clif_displaymessage(fd, atcmd_output);
+
if (count) {
sprintf(atcmd_output, msg_txt(274), count);
clif_displaymessage(fd, atcmd_output);