From 0703b548c06084210bb77de0d21ff8b49c366c22 Mon Sep 17 00:00:00 2001 From: gareth Date: Sat, 3 Mar 2007 00:39:16 +0000 Subject: We have a main update loop! --- src/world/Entity.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/world/Entity.cs') diff --git a/src/world/Entity.cs b/src/world/Entity.cs index ab07fd6..92ab2da 100644 --- a/src/world/Entity.cs +++ b/src/world/Entity.cs @@ -14,6 +14,7 @@ namespace OpenSim.world protected Quaternion rotation; protected string name; protected List children; + public bool needupdate; public Entity() { @@ -29,7 +30,8 @@ namespace OpenSim.world // Do any per-frame updates needed that are applicable to every type of entity foreach (Entity child in children) { - child.update(); + if(child.needupdate) + child.update(); } } -- cgit v1.1