소스 검색

- Fixed @commands not showing the last available commands (unless the total amount of commands is divisible by ten)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6495 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 년 전
부모
커밋
10e96bef2c
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 0
      Changelog-Trunk.txt
  2. 3 1
      src/map/atcommand.c

+ 2 - 0
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]

+ 3 - 1
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);