diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-16 18:50:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-16 22:33:53 +0300 |
commit | 0fa3de24e2e6931a07cbc1fb3dadfff9091250cf (patch) | |
tree | cf8829ca7d273b2464f724308c2fd419f407cc61 /src/being.cpp | |
parent | ade168344165534061b8f184866e2808af7f5d48 (diff) | |
download | manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.gz manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.bz2 manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.tar.xz manaplus-0fa3de24e2e6931a07cbc1fb3dadfff9091250cf.zip |
Separate in skills skill info and skill data for future usage.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index c425f89a4..fa7b3ee85 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -772,7 +772,7 @@ void Being::handleSkill(Being *const victim, const int damage, const SkillInfo *const skill = skillDialog->getSkill(skillId); if (skill) - fireMissile(victim, skill->particle); + fireMissile(victim, skill->data.particle); #ifdef MANASERV_SUPPORT if (Net::getNetworkType() != ServerInfo::MANASERV) @@ -795,9 +795,9 @@ void Being::handleSkill(Being *const victim, const int damage, if (skill) { if (damage > 0) - sound.playSfx(skill->soundHit, mX, mY); + sound.playSfx(skill->data.soundHit, mX, mY); else - sound.playSfx(skill->soundMiss, mX, mY); + sound.playSfx(skill->data.soundMiss, mX, mY); } else { |