Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-21 19:25:11 +0000
committerStijn Buys <ingar@osirion.org>2008-03-21 19:25:11 +0000
commit2314c27dd650dc02c0b5bdd3bef75818393a9ab5 (patch)
tree231815c866a1330338d976480284250e99207554 /src/core/gameconnection.cc
parent7e99fac4552b402034e5fc3e833cbe8c274f95ce (diff)
switched to UDP networking
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r--src/core/gameconnection.cc6
1 files changed, 3 insertions, 3 deletions
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 <sstream>
#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;
-
}
}