Added new drawing category decoration to seperate corpse and item.

This commit is contained in:
Felix Ableitner 2013-08-20 21:53:10 +02:00
parent 56da38792f
commit bc418263f1
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,8 @@ public:
* The order of categories is also used for render order (higher number on top).
*/
enum Category {
CATEGORY_WORLD = 1 << 1,
CATEGORY_WORLD = 1 << 0,
CATEGORY_DECORATION = 1 << 1,
CATEGORY_NONSOLID = 1 << 2,
CATEGORY_PARTICLE = 1 << 3,
CATEGORY_ACTOR = 1 << 4

View file

@ -10,6 +10,6 @@
#include "../util/Yaml.h"
Corpse::Corpse(const Vector2f& position) :
Circle(position, CATEGORY_NONSOLID, MASK_NONE, Yaml("corpse.yaml")) {
Circle(position, CATEGORY_DECORATION, MASK_NONE, Yaml("corpse.yaml")) {
}