fixed some issue

This commit is contained in:
skywind3000 2015-09-02 16:56:03 +08:00
parent 0b301fdf75
commit 879bc236ef

2
ikcp.c
View File

@ -793,7 +793,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
} else {
if (kcp->incr < mss) kcp->incr = mss;
kcp->incr += (mss * mss) / kcp->incr + (mss / 16);
if ((kcp->cwnd + 1) * mss >= kcp->incr) {
if ((kcp->cwnd + 1) * mss <= kcp->incr) {
kcp->cwnd++;
}
}