aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/Main.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Main.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.cs b/src/Main.cs
index 6075035..146d837 100644
--- a/src/Main.cs
+++ b/src/Main.cs
@@ -50,7 +50,6 @@ namespace OpenSim
50 public static SimConfig cfg; 50 public static SimConfig cfg;
51 public static World local_world; 51 public static World local_world;
52 private static Thread MainListener; 52 private static Thread MainListener;
53 private static Thread PingRespponder;
54 public static Socket Server; 53 public static Socket Server;
55 private static IPEndPoint ServerIncoming; 54 private static IPEndPoint ServerIncoming;
56 private static byte[] RecvBuffer = new byte[4096]; 55 private static byte[] RecvBuffer = new byte[4096];
@@ -68,7 +67,7 @@ namespace OpenSim
68 sim = new OpenSim_Main(); 67 sim = new OpenSim_Main();
69 sim.Startup(); 68 sim.Startup();
70 while(true) { 69 while(true) {
71 Thread.Sleep(1000); 70 local_world.DoStuff();
72 } 71 }
73 } 72 }
74 73
@@ -91,6 +90,8 @@ namespace OpenSim
91 MainListener = new Thread(new ThreadStart(MainServerListener)); 90 MainListener = new Thread(new ThreadStart(MainServerListener));
92 MainListener.Start(); 91 MainListener.Start();
93 92
93 Console.WriteLine("Main.cs:Startup() - Starting up main world loop");
94 local_world.InitLoop();
94 } 95 }
95 96
96 private void OnReceivedData(IAsyncResult result) { 97 private void OnReceivedData(IAsyncResult result) {