summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-15 04:30:29 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-15 04:30:29 +0000
commit527f90ae1d50ff02bf7784c5b25550f2a9373456 (patch)
treea8fc08495470a36c3c8f4dd2b67237e10d8eace2 /src/map/atcommand.c
parentf50ce9e6be15ed32eee03ea919641ca2692c52ec (diff)
downloadhercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.gz
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.bz2
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.tar.xz
hercules-527f90ae1d50ff02bf7784c5b25550f2a9373456.zip
- 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
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c10
1 files changed, 4 insertions, 6 deletions
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;