diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-24 05:53:01 -0700 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-10-24 05:53:01 -0700 |
commit | e3d71d9455de45d5a9417dbebd74aa49a0e7ae6a (patch) | |
tree | 29a85675048c93b5f0df24facc665a26be7d2176 /src/map | |
parent | c96747821af834856e349e0854c3766d3bb11708 (diff) | |
parent | b2c9f9de564065019684fcf22ed020b943fc5bbe (diff) | |
download | hercules-e3d71d9455de45d5a9417dbebd74aa49a0e7ae6a.tar.gz hercules-e3d71d9455de45d5a9417dbebd74aa49a0e7ae6a.tar.bz2 hercules-e3d71d9455de45d5a9417dbebd74aa49a0e7ae6a.tar.xz hercules-e3d71d9455de45d5a9417dbebd74aa49a0e7ae6a.zip |
Merge pull request #189 from dastgirpojee/SkidConst
During skill_db parse the skill names are now automatically turned into constants for use throughout any and all scripts, this improves processing speed during runtime and readability (as haruna demonstrates over #189).
Thanks to dastgirpojee! Closes #188
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 366a30ff1..36a509876 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -17690,6 +17690,7 @@ bool skill_parse_row_skilldb(char* split[], int columns, int current) { safestrncpy(skill->db[idx].name, trim(split[15]), sizeof(skill->db[idx].name)); safestrncpy(skill->db[idx].desc, trim(split[16]), sizeof(skill->db[idx].desc)); strdb_iput(skill->name2id_db, skill->db[idx].name, skill_id); + script->set_constant2(skill->db[idx].name,(int)skill_id,0); return true; } |