summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-14 15:39:24 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-14 15:39:24 +0000
commitf2a4147e83fc9d7e510f3d391fc87efcc44005e2 (patch)
tree2aa1aecf371c27968d0c85cb9dc280efbc68df45 /src/map/skill.c
parent4be12e4c23f2a73543fa60ff3e0e0f4235a49ff0 (diff)
downloadhercules-f2a4147e83fc9d7e510f3d391fc87efcc44005e2.tar.gz
hercules-f2a4147e83fc9d7e510f3d391fc87efcc44005e2.tar.bz2
hercules-f2a4147e83fc9d7e510f3d391fc87efcc44005e2.tar.xz
hercules-f2a4147e83fc9d7e510f3d391fc87efcc44005e2.zip
- Shadow Jump no longer goes over walls.
- Insignificant cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8751 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5842cdc31..58b3878b1 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9006,12 +9006,11 @@ int skill_sit (struct map_session_data *sd, int type)
if (!flag) return 0;
- if(type==1) {
+ if(type) {
if (map_foreachinrange(skill_sit_count,&sd->bl, range, BL_PC, flag) > 1)
map_foreachinrange(skill_sit_in,&sd->bl, range, BL_PC, flag);
return 0;
- }
- else if(type==0) {
+ } else {
if (map_foreachinrange(skill_sit_count,&sd->bl, range, BL_PC, flag) < 2)
map_foreachinrange(skill_sit_out,&sd->bl, range, BL_PC, flag);
return 0;