summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 15:45:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 15:45:48 +0000
commitfc936e5ced9af544cde112c1abc7374526088890 (patch)
tree31fcd590c5be902417a8a23ac95ff4d92700f2d5 /src/map/skill.c
parent4add6a5ba3b45cf97a3731a8a38577e7506bca30 (diff)
downloadhercules-fc936e5ced9af544cde112c1abc7374526088890.tar.gz
hercules-fc936e5ced9af544cde112c1abc7374526088890.tar.bz2
hercules-fc936e5ced9af544cde112c1abc7374526088890.tar.xz
hercules-fc936e5ced9af544cde112c1abc7374526088890.zip
- Cleaned up a bit the format of skill_db.txt (that comma next to the skill name looks ugly if you ask me)
- Corrected skill_db reading to properly trim the skill name/descs. - Added a mobid_db in map.c to handle mob lookups faster. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11943 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index fd116f02e..6e9935e33 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10821,8 +10821,8 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current)
else
skill_db[i].skill_type = 0;
skill_split_atoi(split[14],skill_db[i].blewcount);
- safestrncpy(skill_db[i].name, split[15], sizeof(skill_db[i].name));
- safestrncpy(skill_db[i].desc, split[16], sizeof(skill_db[i].desc));
+ safestrncpy(skill_db[i].name, trim(split[15]), sizeof(skill_db[i].name));
+ safestrncpy(skill_db[i].desc, trim(split[16]), sizeof(skill_db[i].desc));
return true;
}