diff options
author | gareth | 2007-03-03 00:39:16 +0000 |
---|---|---|
committer | gareth | 2007-03-03 00:39:16 +0000 |
commit | 0703b548c06084210bb77de0d21ff8b49c366c22 (patch) | |
tree | 38660695df30db53bd7909394729fbb95c8cd667 /src/world/Entity.cs | |
parent | Added usersessions/delete function (diff) | |
download | opensim-SC_OLD-0703b548c06084210bb77de0d21ff8b49c366c22.zip opensim-SC_OLD-0703b548c06084210bb77de0d21ff8b49c366c22.tar.gz opensim-SC_OLD-0703b548c06084210bb77de0d21ff8b49c366c22.tar.bz2 opensim-SC_OLD-0703b548c06084210bb77de0d21ff8b49c366c22.tar.xz |
We have a main update loop!
Diffstat (limited to 'src/world/Entity.cs')
-rw-r--r-- | src/world/Entity.cs | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
14 | protected Quaternion rotation; | 14 | protected Quaternion rotation; |
15 | protected string name; | 15 | protected string name; |
16 | protected List<Entity> children; | 16 | protected List<Entity> children; |
17 | public bool needupdate; | ||
17 | 18 | ||
18 | public Entity() | 19 | public Entity() |
19 | { | 20 | { |
@@ -29,7 +30,8 @@ namespace OpenSim.world | |||
29 | // Do any per-frame updates needed that are applicable to every type of entity | 30 | // Do any per-frame updates needed that are applicable to every type of entity |
30 | foreach (Entity child in children) | 31 | foreach (Entity child in children) |
31 | { | 32 | { |
32 | child.update(); | 33 | if(child.needupdate) |
34 | child.update(); | ||
33 | } | 35 | } |
34 | } | 36 | } |
35 | 37 | ||