From 527f90ae1d50ff02bf7784c5b25550f2a9373456 Mon Sep 17 00:00:00 2001 From: brianluau Date: Wed, 15 Aug 2012 04:30:29 +0000 Subject: - Removed useless mapname compares (since r570) and fixed the strncmp for malangdo/malaya (r15388). [thanks lighta] - Follow up to r16322 so the comment "only modifier is halved but still benefit with the damage bonus" is actually true. Thanks lighta! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16637 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 1577dfc99..e9c31495f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -2085,11 +2085,9 @@ ACMD_FUNC(go) strncmp(map_name, "prison", 3) == 0 || strncmp(map_name, "jails", 3) == 0) { town = 16; - } else if (strncmp(map_name, "jawaii", 3) == 0 || - strncmp(map_name, "jawai", 3) == 0) { + } else if (strncmp(map_name, "jawaii", 3) == 0) { town = 17; - } else if (strncmp(map_name, "ayothaya", 3) == 0 || - strncmp(map_name, "ayotaya", 3) == 0) { + } else if (strncmp(map_name, "ayothaya", 3) == 0) { town = 18; } else if (strncmp(map_name, "einbroch", 5) == 0 || strncmp(map_name, "ainbroch", 5) == 0) { @@ -2120,9 +2118,9 @@ ACMD_FUNC(go) town = 31; } else if (strncmp(map_name, "dewata", 3) == 0) { town = 32; - } else if (strncmp(map_name, "malangdo", 3) == 0) { + } else if (strncmp(map_name, "malangdo", 5) == 0) { town = 33; - } else if (strncmp(map_name, "malaya", 3) == 0) { + } else if (strncmp(map_name, "malaya", 5) == 0) { town = 34; } else if (strncmp(map_name, "eclage", 3) == 0) { town = 35; -- cgit v1.2.3-60-g2f50