Fix removing currency on death
Improve error message for PowerManager loading powers
Define maximum level by xp table size instead of parameter
Merge pull request #775 from dorkster/bugfixes

 Fix removing currency on death
Merge pull request #782 from stefanbeller/improve_error_message

Improve error message for PowerManager loading powers
Merge pull request #783 from stefanbeller/maxlvl

Define maximum level by xp table size instead of parameter
Fix crash caused by #783

(I should really test these things before merging)
Avatar::init: remove hero_cooldown resizing

It's overwritten later on with a newly constructed vector:
	stats.hero_cooldown = vector<int>(POWER_COUNT, 0);

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Move cooldown from statblocks to Avatar

We only need it in Avatar, so move it there.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Merge pull request #789 from stefanbeller/powerlimit

Remove power limit and move hero_cooldown to Avatar
MapRenderer: Fix memory leak

The collision layer was not deleted properly when removed from the map
layers.

Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Merge branch 'master' of git://github.com/clintbellanger/flare-engine into powerlimit
Merge pull request #790 from stefanbeller/memoryleak

Fix memleak in MapRenderer