aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Physics/POSPlugin
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Physics/POSPlugin')
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPlugin.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
index 4355c5e..efc30fe 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPlugin.cs
@@ -169,10 +169,12 @@ namespace OpenSim.Region.Physics.POSPlugin
169 169
170 } 170 }
171 171
172 public override void Simulate(float timeStep) 172 public override float Simulate(float timeStep)
173 { 173 {
174 float fps = 0;
174 for (int i = 0; i < _characters.Count; ++i) 175 for (int i = 0; i < _characters.Count; ++i)
175 { 176 {
177 fps++;
176 POSCharacter character = _characters[i]; 178 POSCharacter character = _characters[i];
177 179
178 float oldposX = character.Position.X; 180 float oldposX = character.Position.X;
@@ -286,6 +288,7 @@ namespace OpenSim.Region.Physics.POSPlugin
286 character._velocity.Z = (character.Position.Z - oldposZ) / timeStep; 288 character._velocity.Z = (character.Position.Z - oldposZ) / timeStep;
287 } 289 }
288 } 290 }
291 return fps;
289 } 292 }
290 293
291 public override void GetResults() 294 public override void GetResults()