From 2314c27dd650dc02c0b5bdd3bef75818393a9ab5 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 21 Mar 2008 19:25:11 +0000 Subject: switched to UDP networking --- src/core/gameconnection.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/gameconnection.cc') diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc index b307fee..634a6ec 100644 --- a/src/core/gameconnection.cc +++ b/src/core/gameconnection.cc @@ -8,9 +8,9 @@ #include #include "sys/sys.h" -#include "net/net.h" #include "core/cvar.h" #include "core/gameconnection.h" +#include "core/net.h" namespace core { @@ -23,7 +23,7 @@ GameConnection::GameConnection(std::string const &connectionstr) connection_network = 0; connection_running = false; - unsigned int port = net::DEFAULTPORT; + unsigned int port = DEFAULTPORT; std::string host(connectionstr); size_t found = host.find(':'); @@ -129,11 +129,11 @@ void GameConnection::frame(float seconds) localplayer()->serialize_client_update(osstream); osstream << '\n'; connection_network->send(osstream.str()); + localplayer()->player_dirty = false; } connection_network->transmit(); connection_frametime += f; - } } -- cgit v1.2.3