Browse Source

Fixed monsterinfo and whereis

Also updated the german translation.
Follow up to 604e805
Lemongrass3110 9 years ago
parent
commit
93c01ee056
2 changed files with 5 additions and 3 deletions
  1. 1 1
      conf/msg_conf/map_msg_grm.conf
  2. 4 2
      src/map/atcommand.c

+ 1 - 1
conf/msg_conf/map_msg_grm.conf

@@ -282,7 +282,7 @@
 266: Manche Items können nicht verkauft werden und werden aus dem Shop entfernt.
 267: '%s' bezeichnetete Maps resettet.
 268: Läd die Nachrichten vom Tag neu.
-269: Zeigt erst %d treffern
+269: Zeigt die ersten %d Treffer an
 //@me output format
 270: * :%s %s: *
 271: Du kannst auf dieser Map keine Items droppen.

+ 4 - 2
src/map/atcommand.c

@@ -7070,9 +7070,10 @@ ACMD_FUNC(mobinfo)
 		return -1;
 	}
 
-	if (count == MAX_SEARCH) {
+	if (count >= MAX_SEARCH) {
 		sprintf(atcmd_output, msg_txt(sd,269), MAX_SEARCH); // Displaying first %d matches
 		clif_displaymessage(fd, atcmd_output);
+		count = MAX_SEARCH;
 	}
 	for (k = 0; k < count; k++) {
 		unsigned int j,base_exp,job_exp;
@@ -7704,9 +7705,10 @@ ACMD_FUNC(whereis)
 		return -1;
 	}
 
-	if (count == MAX_SEARCH) {
+	if (count >= MAX_SEARCH) {
 		sprintf(atcmd_output, msg_txt(sd,269), MAX_SEARCH); // Displaying first %d matches
 		clif_displaymessage(fd, atcmd_output);
+		count = MAX_SEARCH;
 	}
 	for (k = 0; k < count; k++) {
 		struct mob_db *mob = mob_array[k];