From 0125cb14a9a4f4ffced61ba50412f13fe00adbb4 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 14 May 2006 16:19:53 +0000 Subject: Applied another patch by Guillaume Melquiond which fixed a number of issues with the message implementation (client side should also be checked). --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a411407..22ac6a2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -387,7 +387,7 @@ int main(int argc, char *argv[]) elapsedWorldTicks = worldTimer.poll(); if (elapsedWorldTicks > 0) { worldTime += elapsedWorldTicks; - + if (elapsedWorldTicks > 1) { LOG_WARN(elapsedWorldTicks -1 <<" World Tick(s) skipped because of insufficient time. please buy a faster machine ;-)", 0); @@ -407,7 +407,7 @@ int main(int argc, char *argv[]) // other tasks sched_yield(); }; - + /*ENetEvent netEvent; while (enet_host_service(server, &netEvent, 3000) > 0) @@ -421,7 +421,7 @@ int main(int argc, char *argv[]) netEvent.peer->data = (void *)"Client information"; break; - + case ENET_EVENT_TYPE_RECEIVE: { printf("A packet of length %u containing %s was received from %s on channel %u.\n", -- cgit