179 Commits

Author SHA1 Message Date
yvt
5948ef1a2a Exclude unknown configs in the in-game config editor
Fixes #693.
2017-12-30 21:02:36 +09:00
yvt
4b4e8ec217 Eliminate an undefined behavior 2017-12-30 20:44:57 +09:00
yvt
f702eca1d8 Fix crash on server connection 2017-12-30 04:28:50 +09:00
yvt
36fa59fe01 Refactor MainScreenHelper
- Rename methods to follow the general naming convention
- Use glorious lambdas in place of a 😱functor😱
- Make other minor modifications
- Use a smart pointer
- clang-format
- Remove an unused variable
- Remove redundant copies
- Use atomics in place of a heavy-weight mutex
2017-12-22 22:00:52 +09:00
yvt
660066fc2f Rewrite the camera control logic
- Fixes #664
- Fixes #520
2017-12-05 15:42:24 +09:00
David Carlier
4864f07937 Reducing some compilation warnings. 2017-11-18 21:15:07 +00:00
David Carlier
3c5016dc6c On OpenBSD SDL_GetBasePath is not really implemented
due to lack of kernel support of exe self-retrieval.
2017-10-14 15:56:36 +01:00
yvt
ca892698e3 Minor fixes
- Remove unnecessary `volatile`
- Replace some operations with atomic ones for soundness
- Clean up
- Avoid certain UBs
- Typo
2017-06-25 21:15:27 +09:00
yvt
8d02ce3d36 Oops 2017-03-23 15:35:04 +09:00
yvt
fbab073f03 Implement safer TLS deinitialization 2017-03-23 15:34:32 +09:00
yvt
0267df0463 Implement safer dispatch queue deletion
Fixes #604.
2017-03-22 13:24:27 +09:00
David Carlier
657f765542 Fixing few memory leaks + fixing pthread symbol missing 2017-03-04 11:18:12 +00:00
yvt
cd6ec61f80 (Hopefully) fixes the issue #368 2017-03-04 16:33:21 +09:00
yvt
aaa3bc2656 Fix #582 2017-03-04 03:32:14 +09:00
yvt
cf1404c8ae Regenerate block’s health after a certain period of time
Fixes #148
2017-02-20 03:30:10 +09:00
yvt
a6bb4ac7e2 Support the enhanced variant of Version Get/Send packet
Fixes #561.
2017-02-11 16:24:53 +09:00
yvt
7272c067a7 Automatic update check
Fixes #526.
2017-01-30 01:02:40 +09:00
David Carlier
ee88d78d70 adding BSD flavors to system infos 2017-01-27 20:32:47 +00:00
David Carlier
c282f0bf72 While loading a map, a tack overflow is triggered either
in NetLog or LogMessage so here we put some limit to
the buffer.
2017-01-14 18:20:53 +00:00
yvt
b979647e05 ServerAddress’s constructor now accepts a URI with version suffix
Fix #248
2017-01-08 01:08:33 +09:00
yvt
a041abaf0d Add Quaternion (from ngspades) 2017-01-08 00:36:09 +09:00
VelocityRa
94e122544f Fix VersionInfo again (sorry about that) 2017-01-05 16:15:03 +02:00
VelocityRa
245cd210a3 Fix VersionInfo errors, add Windows Server checking 2017-01-05 02:13:04 +02:00
Flávio Monteiro
b0fa1ccbe5 Update VersionInfo.cpp
* Remove use of deprecated API
 * Add support for Windows 10+ detection

Also, indented the macros a bit.
2017-01-05 02:08:01 +02:00
yvt
2554eaad57 Refactor, add more checks 2017-01-05 04:11:42 +09:00
yvt
88f03f01e9 Refactoring
- Mark overriding virtual functions with `override`
- Get rid of warnings
2017-01-05 03:48:11 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
253443dd4c Fix matrix inversion 2017-01-04 23:35:28 +09:00
YVT
fddd0ccb4a Make Opus decoder working on Windows 2016-12-17 09:46:43 -08:00
yvt
c5312e4905 ALDevice: support FP audio data (which is produced by Opus decoder) 2016-12-18 01:39:22 +09:00
yvt
005c0d3452 Reformat OpusAudioStream.cpp 2016-12-18 00:48:12 +09:00
yvt
2ecbd554b4 Support Ogg Opus audio files (.opus) on macOS 2016-12-18 00:45:17 +09:00
YVT
2d0ae3b817 FreeType2 font renderer (#484)
* Backport ngspades’s FreeType2 font renderer

* Change system fonts

* Fix SWImage::Update

* Preliminary custom TTF/OTF font support

* Fix font rendering

* Adjust design

* Update devpak

* Fix to compile on Linux

* Update .travis.yml

* Update external libraries

* Update .travis.yml

* Attempt to fix Travis CI build

* Add missing sudo to travis.yml

* Nevermind the changes, it didn't work

* Update .travis.yml

* Update .travis.yml and CMakeLists.txt
2016-12-11 23:18:16 +09:00
YVT
5b887ddb96 Provide an option to browse the config directory (#481)
Fixes #268.
2016-12-08 04:40:33 +09:00
YVT
dcce3d900e Merge pull request #480 from feikname/master
Add missing <intrin.h> header for Windows build
2016-12-06 15:28:44 +09:00
YVT
8784754bec Fix #476 2016-12-05 22:27:13 -08:00
Flávio Monteiro
a208506a74 Add missing <intrin.h> header for Windows build
- Fixes VS2017 build (#473)
2016-12-06 03:37:19 -02:00
YVT
0df91910ed Remove polyfills for older versions of MSVC 2016-12-04 01:23:12 -08:00
Tomoaki Kawada
c601a5e7d2 Fix coding style 2016-12-04 01:04:38 +09:00
Tomoaki Kawada
2be6524d02 Implement language switcher
Fixes #445.
2016-12-04 00:22:05 +09:00
Tomoaki Kawada
ccd365b602 Fix incorrect SPLog arguments
Fixes #468.
2016-12-03 22:00:46 +09:00
YVT
113c8479aa Fix to compile with MSVC 2015 2016-12-03 02:40:17 -08:00
Tomoaki Kawada
624d291f79 Update #includes
- Reorder them so that system libraries come first
- Use C++-style headers (`<cmath>`) instead of C-style headers (`<math.h>`)
2016-12-03 19:04:58 +09:00
Tomoaki Kawada
ebd79c0099 Change #include style
All `#include`s to other subsystem now use angle brackets, e.g., `#include <Core/Math.h>`.
2016-12-03 18:49:07 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
YVT
941bf6b177 Fix plural form selection code (#470)
Fixes #469.
2016-12-03 02:28:41 +09:00
Tomoaki Kawada
9ebcaf9101 Fix segfault caused by access to an uninitialized std::string
Segfault seems to occur only with the latest version of GCC or glibc.
Hopefully fixes the second issue reported in #434.
2016-11-30 17:09:07 +09:00
VelocityRa
30d133ce31 Use better random generator 2016-11-22 23:08:35 +02:00
Tomoaki Kawada
18f3e81fd1 Convert space indentations to tabs 2016-11-20 19:13:00 +09:00
Tomoaki Kawada
100eb15378 Fix a bug that prevented config variables from being initialized 2016-11-20 17:40:50 +09:00