Marlon Beijer
3a267aa7f7
Add option to disable network support for builds
7 years ago
Gleb Mazovetskiy
e3cf8af94d
dvlnet: More C++11 compatibility
...
Fixes the following warnings:
SourceX/dvlnet/tcp_client.cpp:104:38: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
SourceX/dvlnet/tcp_server.cpp:142:15: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
7 years ago
Mathieu Maret
0ac4c1e419
tcp_client: close connections when leaving
...
So you can join another game latter
fix #251
7 years ago
Gleb Mazovetskiy
4f6c5791a7
Fix some compiler warnings
7 years ago
Anders Jenbo
18532e7c9b
Format SourceX and SourceS
...
Fixes #262
7 years ago
Gleb Mazovetskiy
94f62177f1
Make SourceX/dvlnet C++11 compatible
...
std::make_unique is only available in C++17 and above
7 years ago
Mathieu Maret
19f5686770
Catch exception by reference
7 years ago
Mathieu Maret
89ec0538f5
Correct copy elision warning
...
moving a local object in a return statement prevents copy elision
7 years ago
Nam Nguyen
7e2bd7c967
detect 64-bit platform on windows, gcc, clang, arm and ppc
...
sources:
Use of #ifdef __LP64__ suggested by @brynet .
https://stackoverflow.com/a/40033930
7 years ago
Nam Nguyen
111d147d72
Fix copying from framesize_t (4 bytes) to nextsize (8 bytes)
...
Copy framesize_t (4 bytes) to nextsize (8 bytes) then shift 32 bits to zero out
the most significant 32 bits.
Use of #ifdef __LP64__ suggested by @brynet .
7 years ago
Sergey Semushin
c474692329
Fix lifetime of 'frame' buffer in tcp server/client.
7 years ago
Manuel K
af08ce4934
Use MAX_PLRS (dX part)
7 years ago
Xadhoom
24f746ae6a
Fix strict aliasing violations in netcode
7 years ago
Xadhoom
f00e427ed2
Remove pch.h
7 years ago
Anders Jenbo
31acc0d002
Prepair for 0.2.0
7 years ago
Xadhoom
545009f729
Fix merge
7 years ago
Xadhoom
ba0faf2d0c
miniwin fully macro-clean
7 years ago
Xadhoom
2cd5c1409b
Ensure libsodium compatibility
7 years ago
Xadhoom
1fede67d48
Windows build now compiles (but still has major problems)
7 years ago
Xadhoom
30fbfa36a1
Progress with miniwin macros
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Xadhoom
5407370e71
More header fixes
7 years ago
Xadhoom
ae60e94670
Implement proper turn syncing in the network layer
7 years ago
Anders Jenbo
4a5482087e
Prevent crash when entering wrong password
7 years ago
Anders Jenbo
3b60b066b7
Version the network protocol
...
This is a quick solution to prevent games that are not running the same
version of devilution from joining each other.
7 years ago
Xadhoom
5b8df4bdd8
Use platform-independent sleep function
7 years ago
Xadhoom
aff8769a97
Some fixes for network
7 years ago
Xadhoom
7f0fd7e0fa
Small fixes
7 years ago
Anders Jenbo
eea41503f1
Implement more of the init, audio and video system
...
- Fix audio for videos with 8bit audio
- Allow muting music and audio
- Save audio volumns to ini
7 years ago
Xadhoom
4d557709e0
Clean headers for network code
7 years ago
Xadhoom
af47577446
Begin restructuring headers
7 years ago