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>2009-01-11 12:15:22 +0000
committerStijn Buys <ingar@osirion.org>2009-01-11 12:15:22 +0000
commit20e8e4c0fb1262a25c2491679da4587d264208a2 (patch)
treec836dc74bfb82088c70bdd636dfb1f236043f58d /src/core/netserver.cc
parent7082a5a1b7258580c698a09cf9fb8bec0bc97472 (diff)
core::Player interface updates
Diffstat (limited to 'src/core/netserver.cc')
-rw-r--r--src/core/netserver.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/netserver.cc b/src/core/netserver.cc
index 0854692..dd67809 100644
--- a/src/core/netserver.cc
+++ b/src/core/netserver.cc
@@ -273,7 +273,7 @@ NetClient * NetServer::client_connect(std::string const host, int const port)
}
clients.push_back(client);
- client->player()->player_dirty = false;
+ client->player()->set_dirty(false);
return client;
}
@@ -383,8 +383,8 @@ void NetServer::frame(unsigned long timestamp)
send_player_update(client);
- client->player()->player_dirty = false;
- client->player()->player_zonechange = false;
+ client->player()->set_dirty(false);
+ client->player()->set_zonechange(false);
}
client->transmit();
}
@@ -593,7 +593,7 @@ void NetServer::parse_incoming_message(NetClient *client, const std::string & me
if (command == "ping") {
unsigned long timestamp;
if (msgstream >> timestamp) {
- client->player()->set_ping(server()->timestamp() - timestamp);
+ client->player()->set_ping(application()->timestamp() - server()->startup() - timestamp);
}
return;
}