summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 03:20:25 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-01 03:20:25 +0000
commit2be05e246555bf5d1a21e734918fec4ec9479fa3 (patch)
treef9f139eb13f2dd5c573fddcac3daa299aa3c8b91 /src/map/script.c
parent8d174c40422d85f5f8a05f653b83004f535d707d (diff)
downloadhercules-2be05e246555bf5d1a21e734918fec4ec9479fa3.tar.gz
hercules-2be05e246555bf5d1a21e734918fec4ec9479fa3.tar.bz2
hercules-2be05e246555bf5d1a21e734918fec4ec9479fa3.tar.xz
hercules-2be05e246555bf5d1a21e734918fec4ec9479fa3.zip
Fixed a few typos from r14322.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14323 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f2c437082..f6b41331f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -341,7 +341,7 @@ enum {
MF_AUTOTRADE,
MF_ALLOWKS,
MF_MONSTER_NOTELEPORT,
- MF_PVPNOCALCRANK, //50
+ MF_PVP_NOCALCRANK, //50
MF_BATTLEGROUND
};
@@ -9177,7 +9177,7 @@ BUILDIN_FUNC(getmapflag)
case MF_AUTOTRADE: script_pushint(st,map[m].flag.autotrade); break;
case MF_ALLOWKS: script_pushint(st,map[m].flag.allowks); break;
case MF_MONSTER_NOTELEPORT: script_pushint(st,map[m].flag.monster_noteleport); break;
- case MF_PVPNOCALCRANK: script_pushint(st,map[m].flag.pvpnocalcrank); break;
+ case MF_PVP_NOCALCRANK: script_pushint(st,map[m].flag.pvp_nocalcrank); break;
case MF_BATTLEGROUND: script_pushint(st,map[m].flag.battleground); break;
}
}
@@ -9247,8 +9247,8 @@ BUILDIN_FUNC(setmapflag)
case MF_AUTOTRADE: map[m].flag.autotrade=1; break;
case MF_ALLOWKS: map[m].flag.allowks=1; break;
case MF_MONSTER_NOTELEPORT: map[m].flag.monster_noteleport=1; break;
- case MF_PVPNOCALCRANK: map[m].flag.pvpnocalcrank=1; break;
- case MF_BATTLEGROUND: map[m].flag.battleground = (!val || atoi(val) < - || atoi(val) > 2) ? 1 : atoi(val); break;
+ case MF_PVP_NOCALCRANK: map[m].flag.pvp_nocalcrank=1; break;
+ case MF_BATTLEGROUND: map[m].flag.battleground = (!val || atoi(val) < 0 || atoi(val) > 2) ? 1 : atoi(val); break;
}
}
@@ -9314,7 +9314,7 @@ BUILDIN_FUNC(removemapflag)
case MF_AUTOTRADE: map[m].flag.autotrade=0; break;
case MF_ALLOWKS: map[m].flag.allowks=0; break;
case MF_MONSTER_NOTELEPORT: map[m].flag.monster_noteleport=0; break;
- case MF_PVPNOCALCRANK: map[m].flag.pvpnocalcrank=0; break;
+ case MF_PVP_NOCALCRANK: map[m].flag.pvp_nocalcrank=0; break;
case MF_BATTLEGROUND: map[m].flag.battleground=0; break;
}
}