~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/localplayer.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-07-11 10:09:41 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130711100941-f0rwuvcwgl8ulqo8
Tags: 1.3.7.7.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1553
1553
        {
1554
1554
            // replace sprite or append
1555
1555
            bool found = false;
1556
 
 
1557
 
            for (unsigned int i = 0; i < mStatusEffectIcons.size(); i++)
 
1556
            const unsigned int sz = mStatusEffectIcons.size();
 
1557
            for (unsigned int i = 0; i < sz; i++)
1558
1558
            {
1559
1559
                if (mStatusEffectIcons[i] == effectId)
1560
1560
                {
1767
1767
                mTarget->getTileX(), mTarget->getTileY(), getWalkMask(), 0);
1768
1768
        }
1769
1769
 
1770
 
        if (debugPath.size() < static_cast<unsigned>(dist))
 
1770
        const unsigned int sz = debugPath.size();
 
1771
        if (sz < static_cast<unsigned int>(dist))
1771
1772
            return;
1772
 
        limit = static_cast<int>(debugPath.size()) - dist;
 
1773
        limit = static_cast<int>(sz) - dist;
1773
1774
        gotPos = true;
1774
1775
    }
1775
1776
    else if (mNavigateX || mNavigateY)