summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-13 03:36:00 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-13 03:36:00 +0300
commitc978b7f0d9de1bb6bd84cd299ed80c27c5147927 (patch)
tree8f1edc2be0816693761ba58aa7c7c554040a7db6 /src/resources/mapreader.cpp
parentda1b2d8311ca78eccd3e9875598562ce6bf05cab (diff)
downloadplus-c978b7f0d9de1bb6bd84cd299ed80c27c5147927.tar.gz
plus-c978b7f0d9de1bb6bd84cd299ed80c27c5147927.tar.bz2
plus-c978b7f0d9de1bb6bd84cd299ed80c27c5147927.tar.xz
plus-c978b7f0d9de1bb6bd84cd299ed80c27c5147927.zip
Impliment new tags in sprites animations and random condition.
Tags: <label>, <goto>
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index d2bcde06d..3bd77315a 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -705,11 +705,12 @@ Tileset *MapReader::readTileset(xmlNodePtr node, const std::string &path,
"animation-frame" + toString(i));
iDelay = tileProperties.find(
"animation-delay" + toString(i));
+ // possible need add random attribute?
if (iFrame != tileProperties.end()
&& iDelay != tileProperties.end())
{
ani->addFrame(set->get(iFrame->second),
- iDelay->second, 0, 0);
+ iDelay->second, 0, 0, 100);
}
else
{