From ce78048419f2cf6f86aeb22b78420da2d5523ba2 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 29 Sep 2013 13:14:44 +0000 Subject: build-0.2.5-svn1327 --- src/core/entity.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/core/entity.cc') diff --git a/src/core/entity.cc b/src/core/entity.cc index 589d132..b7d7646 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -1281,6 +1281,22 @@ void EntityControlable::set_target_controlflags(int controlflags) } } +void EntityControlable::set_target_controlflag(const ControlFlag controlflag) +{ + if (!has_controlflag(controlflag); + target_controlflags = target_controlflags | controlflag; + set_dirty(); + } +} + +void EntityControlable::unset_target_controlflag(const ControlFlag controlflag) +{ + if (has_controlflag(controlflag); + target_controlflags = target_controlflags & ~controlflag; + set_dirty(); + } +} + void EntityControlable::set_zone(Zone *zone) { if (entity_zone == zone) -- cgit v1.2.3