diff options
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 0fff9ba0c..efadefe9c 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -859,7 +859,7 @@ int skillnotok (int skillid, struct map_session_data *sd) return 1; if (battle_config.gm_skilluncond && pc_isGM(sd) >= battle_config.gm_skilluncond) - return 0; // gm's can do anything damn thing they want + return 0; // GMs can do any damn thing they want if (sd->blockskill[i] > 0) return 1; @@ -8726,7 +8726,7 @@ int skill_castfix_sc (struct block_list *bl, int time) } /*========================================== - * Does delay reductions based on dex, + * Does delay reductions based on dex, sc data, item bonuses, ... *------------------------------------------*/ int skill_delayfix (struct block_list *bl, int skill_id, int skill_lv) { @@ -11186,7 +11186,8 @@ int skill_readdb (void) ShowError("can't read %s\n", path); return 1; } - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[50]; if(line[0]=='/' && line[1]=='/') continue; @@ -11248,7 +11249,8 @@ int skill_readdb (void) ShowError("can't read %s\n", path); return 1; } - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[50]; if(line[0]=='/' && line[1]=='/') continue; @@ -11335,7 +11337,8 @@ int skill_readdb (void) } l=0; - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[50]; l++; memset(split,0,sizeof(split)); // [Valaris] thanks to fov @@ -11373,7 +11376,8 @@ int skill_readdb (void) return 1; } k = 0; - while (fgets(line,1020,fp)) { + while (fgets(line, sizeof(line), fp)) + { char *split[50]; if (line[0]=='/' && line[1]=='/') continue; @@ -11434,7 +11438,8 @@ int skill_readdb (void) ShowError("can't read %s\n",path); return 1; } - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[7 + MAX_PRODUCE_RESOURCE * 2]; int x,y; if(line[0]=='/' && line[1]=='/') @@ -11475,7 +11480,8 @@ int skill_readdb (void) return 1; } k=0; - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[16]; int x,y; if(line[0]=='/' && line[1]=='/') @@ -11509,7 +11515,8 @@ int skill_readdb (void) return 1; } k=0; - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[16]; if(line[0]=='/' && line[1]=='/') continue; @@ -11537,7 +11544,8 @@ int skill_readdb (void) ShowError("can't read %s\n", path); return 1; } - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[50]; if(line[0]=='/' && line[1]=='/') continue; @@ -11566,7 +11574,8 @@ int skill_readdb (void) return 1; } k=0; - while(fgets(line,1020,fp)){ + while(fgets(line, sizeof(line), fp)) + { char *split[16]; if(line[0]=='/' && line[1]=='/') continue; |