diff options
Diffstat (limited to 'src/core/gameconnection.cc')
-rw-r--r-- | src/core/gameconnection.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/gameconnection.cc b/src/core/gameconnection.cc index 4c31f78..b307fee 100644 --- a/src/core/gameconnection.cc +++ b/src/core/gameconnection.cc @@ -123,6 +123,15 @@ void GameConnection::frame(float seconds) //con_debug << netmsg.str(); } + if (localplayer()->dirty()) { + std::ostringstream osstream; + osstream << "pif "; + localplayer()->serialize_client_update(osstream); + osstream << '\n'; + connection_network->send(osstream.str()); + } + + connection_network->transmit(); connection_frametime += f; } |