TCP_SocketReady() should now return true if data is available

This commit is contained in:
n00b
2024-12-15 15:12:15 -05:00
parent b01f3cfc01
commit e05f4ff024

View File

@@ -203,7 +203,7 @@ int rc_net_tcp_socketReady(int _socket)
if(rc_tcp_socket[_socket].socket == NULL) if(rc_tcp_socket[_socket].socket == NULL)
return 0; return 0;
return SDLNet_SocketReady(rc_tcp_socket[_socket].socket); return !(SDLNet_SocketReady(rc_tcp_socket[_socket].socket));
} }
int rc_net_tcp_getData(int socket, int numBytes, void * dst) int rc_net_tcp_getData(int socket, int numBytes, void * dst)