summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-16 22:03:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-16 22:33:53 +0300
commit4520aa5631f5dfa9d941231a11c2ba782f456dd0 (patch)
treea01027e50987230d63aaeeccc65c074c3a6dca7c /src/being.cpp
parent99fc034012a3c97805014d578c8bb910beabfbc5 (diff)
downloadplus-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.gz
plus-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.bz2
plus-4520aa5631f5dfa9d941231a11c2ba782f456dd0.tar.xz
plus-4520aa5631f5dfa9d941231a11c2ba782f456dd0.zip
Allow different skill images/names etc for each skill level.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp
index fa7b3ee85..6f530f9e8 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->data.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->data.soundHit, mX, mY);
+ sound.playSfx(skill->data->soundHit, mX, mY);
else
- sound.playSfx(skill->data.soundMiss, mX, mY);
+ sound.playSfx(skill->data->soundMiss, mX, mY);
}
else
{