Ver Fonte

Fixed @go, where mora and morocc had conflicts, @mora was sending you to morocc. Also Added the spelling of "Morroc", Thereby Sending you to morocc in the event you mistype it. [Spre]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16790 54d463be-8e91-2dee-dedb-b68131a5f0ec
spre123 há 12 anos atrás
pai
commit
918ba34f84
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/map/atcommand.c

+ 3 - 2
src/map/atcommand.c

@@ -1957,7 +1957,8 @@ ACMD_FUNC(go)
 	// try to identify the map name
 	if (strncmp(map_name, "prontera", 3) == 0) {
 		town = 0;
-	} else if (strncmp(map_name, "morocc", 3) == 0) {
+	} else if (strncmp(map_name, "morocc", 4) == 0 ||
+				strncmp(map_name, "morroc", 4) ==0) {
 		town = 1;
 	} else if (strncmp(map_name, "geffen", 3) == 0) {
 		town = 2;
@@ -2026,7 +2027,7 @@ ACMD_FUNC(go)
 		town = 29;
 	} else if (strncmp(map_name, "dicastes01", 3) == 0) {
 		town = 30;
-	} else if (strncmp(map_name, "mora", 3) == 0) {
+	} else if (strncmp(map_name, "mora") == 0) {
 		town = 31;
 	} else if (strncmp(map_name, "dewata", 3) == 0) {
 		town = 32;