summaryrefslogtreecommitdiff
path: root/src/compoundsprite.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-02-11Remove some unneeded includes.Andrei Karas1-1/+2
2012-01-29Fix memory leak after last commit.Andrei Karas1-10/+6
2012-01-29Removed inheritance from std::vector by CompoundSpriteThorbjørn Lindeijer1-37/+43
In my opinion, the code is clearer when using aggregation. For performance it makes no difference. This also fixes a memory leak in CompountSprite::clear, which forgot to delete any existing sprites. Reviewed-by: Erik Schilling Conflicts: src/compoundsprite.cpp src/compoundsprite.h
2012-01-05Update copyrights year.Andrei Karas1-1/+1
2011-11-24Add ability to play different animation depend on monster hp.Andrei Karas1-0/+15
Disabled for legacy servers because monster hp unknown and compilated hp can be wrong (version <= 0). For usage need add to action tag attribute hp="xx" Example: <action name="stand" hp="50" imageset="base"> ... </action> Here 50 mean 50% of health or less. Default action tag mean hp=100
2011-11-08Fix more gcc 4.7 warnings.Andrei Karas1-20/+21
2011-11-07Fix some warnings under gcc 4.7.Andrei Karas1-5/+5
2011-09-08Replace most iterator to const_iterator.Andrei Karas1-3/+3
Some other minor changes.
2011-09-02Fix compilation with different flags.Andrei Karas1-0/+4
2011-08-09Add new perfomance parameters.Andrei Karas1-9/+23
2011-08-07For opengl and uncacheble complex sprites return behaviorAndrei Karas1-5/+7
like was before commit 4e7096f15eba73e6ea28066df6ab389aab3f052c.
2011-08-03Dont create in software alpha surface for complex sprites only if gui alpha ↵Andrei Karas1-1/+1
disabled.
2011-08-02Dont create surface with alpha if alpha = 1 in software mode.Andrei Karas1-3/+9
2011-08-02Fix perfomance issue with caching complex sprites.Andrei Karas1-16/+131
2011-08-01Fix random opacity issue in complex sprites in software mode.Andrei Karas1-10/+15
2011-05-24Add simple memory leak detector.Andrei Karas1-0/+2
Can be enabled by configure option -enable-memdebug=yes. Known issue: not all memory allocations hooked with it.
2011-04-18Rename sprites method setDirection to setSpriteDirection.Andrei Karas1-2/+2
2011-02-19Update copyrights.Andrei Karas1-2/+3
2011-01-15Fix code style, apply some fixes after checking with cppcheck from git.Andrei Karas1-12/+12
2011-01-02Initial commit.Andrei Karas1-0/+408
This code based on mana client http://www.gitorious.org/mana/mana and my private repository.