From 7d7b9324f1f0db14648fb9fe32256d7942af77b9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 16 Mar 2008 14:51:37 +0000 Subject: somewhat smoother network play, player assets, client pif updates --- src/core/netclient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/netclient.cc') diff --git a/src/core/netclient.cc b/src/core/netclient.cc index 937cf21..0f56bb9 100644 --- a/src/core/netclient.cc +++ b/src/core/netclient.cc @@ -97,7 +97,7 @@ void NetClient::send(std::string const &msg) void NetClient::transmit() { - while (sendq.size() && !error()) { + while (sendq.size() && valid() && !error()) { TCPClient::send(sendq.substr(0, net::FRAMESIZE-1)); if (sendq.size() < net::FRAMESIZE) { sendq.clear(); -- cgit v1.2.3