medfall

A super great game engine
Log | Files | Refs

commit 2c0eaa47b85d36c031fbffb7804868ebb99efdf3
parent 6c09e8fd7c6f34789433e936fa6da11b68ebbbed
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Jul 11 23:29:20 +0300

Fix the server on OpenBSD

Diffstat:
server/main.cc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/main.cc b/server/main.cc @@ -84,7 +84,7 @@ bool receive( int fd, char * buf, size_t * bytes_read, size_t buf_len, sockaddr_ } static void send( int fd, const PlayerState * state, const WriteStream & ws ) { - sendto( fd, ws.start, ws.len(), 0, ( sockaddr * ) &state->addr, sizeof( state->addr ) ); + sendto( fd, ws.start, ws.len(), 0, ( sockaddr * ) &state->addr, sizeof( sockaddr_in ) ); } int main() {