summaryrefslogtreecommitdiffstats
path: root/pokemod/MapEffect.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-02-24 02:38:08 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-02-24 02:38:08 +0000
commitfc3046a7e917458e024d76fd37ec531ce7efe217 (patch)
tree5623616277cfccd98d6c7fd67ee8335173a17b2c /pokemod/MapEffect.cpp
parent35c3bd12416bc4a44efb12bd92757837d661ec21 (diff)
downloadsigen-fc3046a7e917458e024d76fd37ec531ce7efe217.tar.gz
sigen-fc3046a7e917458e024d76fd37ec531ce7efe217.tar.xz
sigen-fc3046a7e917458e024d76fd37ec531ce7efe217.zip
[FIX] Include cleanup
[FIX] Consolidate skins into Pokemod UI forms [FIX] Now using KMainWindow [FIX] Some code for the tree set up git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@79 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MapEffect.cpp')
-rw-r--r--pokemod/MapEffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp
index c7c2c1c1..5ca7f96f 100644
--- a/pokemod/MapEffect.cpp
+++ b/pokemod/MapEffect.cpp
@@ -69,7 +69,7 @@ bool MapEffect::validate() const
pokemod->validationMsg("Invalid existence flag status");
valid = false;
}
- if (!QFile::exists(QString("%1/image/skin/%2.png").arg(pokemod->getPath()).arg(skin)))
+ if (!QFile::exists(getSkin()))
{
pokemod->validationMsg(QString("Skin not found"));
valid = false;
@@ -286,7 +286,7 @@ Flag MapEffect::getExistFlag() const
QString MapEffect::getSkin() const
{
- return skin;
+ return QString("%1/image/skin/%2.png").arg(pokemod->getPath()).arg(skin);
}
int MapEffect::getEffect() const