summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-05 21:29:07 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:26:24 +0200
commitc2f84724b5589c3951ed2740ad411f35563bd9c8 (patch)
tree4a2c47138e5e35785c759a906b2c2c578ea8751b
parent696cf014fc7e662e32f37bf6ffe4a391961db621 (diff)
downloadhercules-c2f84724b5589c3951ed2740ad411f35563bd9c8.tar.gz
hercules-c2f84724b5589c3951ed2740ad411f35563bd9c8.tar.bz2
hercules-c2f84724b5589c3951ed2740ad411f35563bd9c8.tar.xz
hercules-c2f84724b5589c3951ed2740ad411f35563bd9c8.zip
Fix incorrect coding style used in char/char.c and map/skill.c
-rw-r--r--src/char/char.c4
-rw-r--r--src/map/skill.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3ce8e9040..a43f783b5 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1557,10 +1557,10 @@ int char_make_new_char_sql(struct char_session_data *sd, const char *name_, int
SQL->EscapeStringLen(inter->sql_handle, esc_name, name, strnlen(name, NAME_LENGTH));
flag = chr->check_char_name(name,esc_name);
- if( flag < 0 )
+ if (flag < 0)
return flag;
- switch(starting_job) {
+ switch (starting_job) {
case JOB_SUMMONER:
case JOB_NOVICE:
break;
diff --git a/src/map/skill.c b/src/map/skill.c
index b3a060de2..4c57fbc56 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9549,14 +9549,14 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
break;
case SU_HIDE:
- if (tsce) {
- clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
+ if (tsce != NULL) {
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
status_change_end(bl, type, INVALID_TIMER);
map->freeblock_unlock();
return 0;
}
- clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
- sc_start(src,bl,type,100,skill_lv,skill->get_time(skill_id,skill_lv));
+ clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
+ sc_start(src, bl, type, 100, skill_lv, skill->get_time(skill_id, skill_lv));
break;
break;