diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-25 15:21:53 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-25 15:21:53 +0000 |
commit | b4d6bac9a4d623a9b32188458b26ae424d374bb3 (patch) | |
tree | 278b8f86ab39740f7b0dad0e726b10fc4198894a /src/map/skill.c | |
parent | c842495d17863ebddaf64da006ceb642c70a9ad6 (diff) | |
download | hercules-b4d6bac9a4d623a9b32188458b26ae424d374bb3.tar.gz hercules-b4d6bac9a4d623a9b32188458b26ae424d374bb3.tar.bz2 hercules-b4d6bac9a4d623a9b32188458b26ae424d374bb3.tar.xz hercules-b4d6bac9a4d623a9b32188458b26ae424d374bb3.zip |
Corrected some weird fgets() statements, plus reformatted them
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10616 54d463be-8e91-2dee-dedb-b68131a5f0ec
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; |