Michał Janiszewski
08fc5f817a
Disable using RLE when saving for network
2016-01-20 15:30:59 +01:00
Michał Janiszewski
9afcd15335
Make network use zlib compression for transferring map.
2016-01-20 15:30:59 +01:00
Michał Janiszewski
3bf1e0e06d
Rename safe_strncpy to safe_strcpy
2016-01-18 20:49:52 +01:00
IntelOrca
cdee534eb1
use SDL2's platform defines to normalise platform guards
2016-01-14 20:12:43 +00:00
IntelOrca
e4c6c79552
fix #2650 : validate game commands sent from clients in multiplayer
2016-01-05 18:30:39 +00:00
IntelOrca
f93a134aa6
fix map size error when sending network game information
2015-12-24 01:40:03 +00:00
Michał Janiszewski
98e204552a
countof with type safety
...
For reference see http://www.g-truc.net/post-0708.html and
http://lxr.free-electrons.com/source/include/linux/kernel.h#L54
This will provide a type-safe mechanism for counting elements of array.
If you try passing something which cannot be counted, compiler will
frown at you right away.
2015-12-15 00:28:58 +01:00
Michał Janiszewski
a5b465fad1
Fix some compiler warnings
2015-12-14 22:52:27 +01:00
IntelOrca
c6056cbb6c
Merge branch 'pre-release-0.0.3' into develop
...
Conflicts:
src/audio/audio.c
2015-11-27 22:05:40 +00:00
Linus Unnebäck
30b6718532
start of OS X support
2015-11-27 17:43:12 +01:00
zsilencer
0c3c9d5400
Fix #2352 . Do not open disconnected status window when password input canceled.
2015-11-23 13:07:18 -07:00
duncanspumpkin
5bd3b8d6af
Implement util_rand due to rand having a poor range on some platforms
2015-11-20 21:40:36 +00:00
IntelOrca
5ef10f5050
fix memory leaks in JSON object creation for multiplayer
2015-11-20 18:48:40 +00:00
Michał Janiszewski
e7b58b7375
Skip closing network if already closed
...
Fixes #2203
2015-11-14 17:12:38 +01:00
IntelOrca
ed8e7c2d38
add extra server details on gameinfo packet
2015-11-11 22:39:04 +00:00
IntelOrca
09cd007f3f
add dedicated flag to gameInfo
2015-11-08 23:50:38 +00:00
IntelOrca
da6d382c47
make server heartbeat PUT
2015-11-08 23:29:52 +00:00
IntelOrca
2e55495470
improve master server to POST json
2015-11-08 22:03:35 +00:00
IntelOrca
6fe2340dfe
stop clients from pausing multiplayer games
2015-11-08 14:32:22 +00:00
IntelOrca
d2aa736492
fix master server communication
2015-11-08 04:02:23 +00:00
IntelOrca
0b9882b96f
fix master server poll times
2015-11-08 02:22:49 +00:00
IntelOrca
782d3e63b2
add new master server functionality
2015-11-08 02:12:12 +00:00
IntelOrca
9bad4183a7
add default master server url and refactor
2015-11-07 23:56:16 +00:00
IntelOrca
74fe482a62
improve game info json
2015-11-07 23:47:50 +00:00
zsilencer
1e9381ef97
master server list
2015-11-07 22:27:51 +00:00
zsilencer
9acfd27735
password prompt for client
2015-11-07 22:26:46 +00:00
zsilencer
3b639ced47
allow host to specify password #2072
2015-11-07 22:25:47 +00:00
zsilencer
d66eb70f56
fix potential overflow
2015-11-07 22:23:41 +00:00
IntelOrca
800e80aeb3
fix demolish track piece as client on multiplayer
2015-11-03 22:58:30 +00:00
zsilencer
34dff6f46b
address #2073 , graceful KickPlayer with message, disconnect reason messages, chat player name and text different color
2015-11-01 01:50:44 -06:00
Michał Janiszewski
9284930d7e
Add safe_strncpy function
...
safe_strncpy is similar to strncpy, but makes sure buffer is
null-terminated. Update most of project to use this updated function to
prevent illegal memory accesses.
2015-10-30 16:01:00 +01:00
Michał Janiszewski
1d772b01d0
Plug memory leak and validate getsockopt result
2015-10-29 21:41:49 +01:00
zsilencer
00e2ca43a1
ipv6 support, non-blocking address resolve and connect
2015-10-26 22:35:34 -06:00
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02:00
duncanspumpkin
fedd83987e
Fix Disable Network build
2015-10-18 12:02:31 +01:00
IntelOrca
6c6fa1d444
add ability for server to kick player, closes #2071
2015-10-16 22:20:16 +01:00
Michał Janiszewski
9e62198546
Partially revert c93c1c7, for mingw builds only
...
Conditionally restore old functionality which got broken for mingw
builds with commit c93c1c7 . Allow building with old version of code, but
generate a warning when doing so.
2015-09-29 00:13:27 +02:00
IntelOrca
3835c8c109
fix inet_ntop signature issues
2015-09-26 13:48:24 +01:00
zsilencer
266f1c1e37
make multiplayer work in linux
2015-09-24 18:39:15 +01:00
IntelOrca
c93c1c738a
fix network warnings by using new functions over deprecated
2015-09-24 18:30:14 +01:00
Michał Janiszewski
4df8761831
remove windows-only code
...
Step 1 on road towards Linux.
Remove windows-specific code, stub it out where needed and make sure we
can still compile it the way it is.
Take care of Travis' build matrix to include new build configuration.
Install new packages.
2015-09-18 16:01:38 +02:00
IntelOrca
85181b5ed3
add stay_connected config option
2015-09-05 18:46:13 +01:00
Gator96100
c3ffd221de
Added support for hostnames
2015-09-03 19:49:14 +02:00
zsilencer
6ea9b6666c
disable naggle
2015-09-02 20:41:17 -06:00
IntelOrca
f0100a71a7
use windows lean and mean to reduce definition conflicts
2015-08-29 13:13:22 +01:00
zsilencer
720076acb5
fix cmake error
2015-08-19 22:59:55 -06:00
zsilencer
7322307a04
fix issues with pausing in multiplayer
2015-08-19 20:34:52 -06:00
zsilencer
5bb3218d4c
make desync detection work again
2015-08-19 19:07:11 -06:00
zsilencer
abcd0afa9a
make setting player name actually work
2015-08-19 18:26:42 -06:00
IntelOrca
408628c80c
fix building on VS
2015-08-19 07:47:21 +01:00