diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-04 21:40:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-04 21:40:20 +0000 |
commit | a045ea4846861404ee26c0d077ea639c1987a8cb (patch) | |
tree | 3338eced9df04ca0c6645f9bd7fcb827c67e3437 /src/core/entity.cc | |
parent | 5f74a6b0f3e84ec00e68cda63da6e66df33a8149 (diff) |
Improved zone keepalive updates.
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r-- | src/core/entity.cc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc index e76f254..89c78d8 100644 --- a/src/core/entity.cc +++ b/src/core/entity.cc @@ -1505,23 +1505,5 @@ void EntityControlable::action(btScalar seconds) { } -// osirion game frame (runs at osirion server framerate) -void EntityControlable::frame(const unsigned long elapsed) -{ - EntityDynamic::frame(elapsed); - - // update zone keepalive bounding box - if (owner() && (owner()->control() == this) && zone()) { - - // add player controlable to keepalive bounding box - if (!zone()->keepalive_run()) { - zone()->keepalive_box().assign(location()); - zone()->set_keepalive_run(true); - } else { - zone()->keepalive_box().expand(location()); - } - } -} - } //namespace core |