1873 Commits

Author SHA1 Message Date
yvt
c073c92c6a fix(client): don't pass nullptr to std::nan, don't use std::nan at all
`std::nan` converts a given string to a quiet NaN value in an
implementation-defined way. It accepts an empty string, but that doesn't
mean you can pass `nullptr`. Passing `nullptr` causes a segmentation
fault on Linux but does not on macOS, which I think is why I missed that
in the first place.

Actually, `std::nan` isn't even really needed here, hence I replaced it
with `NAN`.
2021-01-05 16:22:17 +09:00
yvt
d8efb424be
feat(i18n): update translations
Contributors (sorted by language):

Norwegian Bokmål: TheNekOz
Turkish: Emircan (EmircanGRBZ)
2020-12-20 15:43:44 +09:00
yvt
656af7f3c4
chore(i18n): add project_id 2020-12-20 15:39:38 +09:00
yvt
684753ab27 chore(cmake): rename the executable to OpenSpades.exe on Windows 2020-12-18 05:56:44 -08:00
yvt
7c27e5b25c
Merge pull request #928 from yvt/chore-msvc-paks
Improve the asset building in MSVC

- The pak building step now tracks its dependencies correctly. Consequently, it will not run if the input files are unchanged.
- The build process now copies `PackageInfo.json` to the correct output directory.
2020-12-18 22:54:15 +09:00
yvt
deee473715
chore(cmake): support disabling non-GPL file downloading 2020-12-18 22:53:22 +09:00
yvt
861ae3651f
chore(cmake): describe OPENSPADES_RESOURCES correctly 2020-12-18 22:36:40 +09:00
yvt
0af62bc50d chore(cmake): create bin/$<CONFIGURATION>/Resources before copying files into it 2020-12-18 05:28:19 -08:00
yvt
8f1b51a469 chore(cmake): add comments to build steps 2020-12-18 05:22:16 -08:00
yvt
18d3220034 chore(cmake): specify mkpak.*'s dependencies precisely 2020-12-18 05:22:15 -08:00
yvt
a20ce5f47a chore(cmake): handle MSVC multi-config more elegantly 2020-12-18 05:22:15 -08:00
yvt
a5a22653b9 chore(cmake): copy PackageInfo.json in MSVC builds 2020-12-18 05:22:15 -08:00
yvt
4d078e7376
Merge pull request #924 from yvt/patch-vcpkg
Adopt vcpkg and streamline the build process
2020-12-18 22:15:55 +09:00
yvt
2a72668cda
doc: convert is not needed for macOS builds 2020-12-18 22:04:02 +09:00
yvt
e7822118f7
chore(ci): remove the Travis CI configuration 2020-12-18 22:00:07 +09:00
yvt
9b7673d8d2 chore: get rid of Sources/Externals
We don't need it anymore since we now use vcpkg to fetch dependencies.
2020-12-18 04:54:27 -08:00
yvt
a66cad2d8f chore(ci): setup GitHub workflow for Windows builds 2020-12-18 04:40:23 -08:00
yvt
ae7ce2f029 chore: link libraries statically when building for x86-windows 2020-12-18 04:40:23 -08:00
yvt
528a5a5cdc chore(cmake): get vcpkg-based build working on Windows (again) 2020-12-18 04:40:23 -08:00
yvt
cb5f0d9284
fix: remove any remaining references to cg_smp
Fixes #923.
2020-12-17 00:39:23 +09:00
yvt
665b7ee799
doc: clarify network usage during building 2020-12-14 00:31:57 +09:00
yvt
d27e646242
chore: delete the Xcode project 2020-12-14 00:20:50 +09:00
yvt
cdf2bcd9a5
chore: download libysrspades.dylib automatically when building for macOS 2020-12-14 00:14:13 +09:00
yvt
e9cd690a71
chore: build macOS app bundle 2020-12-14 00:02:47 +09:00
yvt
bffbf913c2 chore(ci): setup GitHub workflow for macOS builds 2020-12-13 21:46:14 +09:00
yvt
c808ad427b
chore: get vcpkg-based build working on macOS (again) 2020-12-13 21:46:13 +09:00
yvt
735ab954d4 Update vcpkg 2020-12-13 18:59:57 +09:00
yvt
46679c65c4
Merge pull request #908 from devnexen/modern_cpp_build_fix
Content class little code simplification.
2020-09-21 18:26:21 +09:00
David Carlier
321c7ad2c6 Content class little code simplification. 2020-09-21 10:19:36 +01:00
yvt
a9ef566ccc
Merge pull request #907 from devnexen/haiku_support_following_up
Backporting Angelscript Haiku support fix.
2020-09-14 00:11:55 +09:00
David Carlier
d69b75f83e Backporting Angelscript Haiku support fix.
Fixing segfault on OpenGL extensions listing.
2020-08-31 17:09:17 +00:00
Tomoaki Kawada
738c7e509e
Merge pull request #848 from Tuupertunut/master
Fixed map loading with protocol 0.76.
2020-08-06 15:21:09 +09:00
Tomoaki Kawada
5a57a5e406
Explain why we send MapCached 2020-08-06 15:19:16 +09:00
Tomoaki Kawada
8f21710555
Merge pull request #901 from devnexen/haiku_support
Haiku support.
2020-07-29 13:33:13 +09:00
David Carlier
191124ddb7 Haiku support. 2020-07-28 19:03:50 +00:00
yvt
8a98e3d186 Fix the incorrect arrangement of preprocessor directives 2020-06-08 13:02:52 +09:00
Tomoaki Kawada
502e02a2df
Merge pull request #899 from devnexen/i386_build_fix
Preserves EBX manually for the i386 architecture with PIC builds.
2020-06-08 12:54:04 +09:00
David Carlier
eb6d59c946 Little fix proposal for i386 arch.
needs to preserv ebx for the i386 architecture with PIC builds.
2020-06-06 13:50:07 +01:00
Tomoaki Kawada
db085ff4f0
Merge pull request #897 from devnexen/mac_build_upd
Disable spurious opengl deprecations warning on mac.
2020-05-20 16:18:40 +09:00
David Carlier
573218c856 Disable spurious opengl deprecations warning on mac.
Metal API had been prioritised thus the deprecation.
2020-05-20 06:49:57 +01:00
yvt
4fbe5ee5ce
Reset intels and team scores after receiving winning IntelCapture
This problem was originally reported in:
<https://github.com/piqueserver/piqueserver/issues/586>

Upon receiving `IntelCapture` with `winning = 1`, the voxlap client
resets both team scores and the holding status of both teams' intels,
but OpenSpades didn't do that, resulting in a weird behavior described
in piqueserver/piqueserver#586. This commit changes OpenSpades' behavior
to be congruent with the voxlap client's behavior.

Fixes #890.
2020-04-20 13:38:57 +09:00
Tomoaki Kawada
a455307017
Merge pull request #877 from goleo108/patch-1
AngelScript: fix build on DragonFly BSD, NetBSD and sparc64
2020-04-20 01:51:24 +09:00
Tomoaki Kawada
470c62d5b7
Merge pull request #884 from devnexen/mem_range_overlap_in_scripting_fix
Memory overlap fix proposal.
2020-04-20 01:51:02 +09:00
yvt
f4dffb78dd
Update translations
Contributors (sorted by language):

- German: theunknownxy
- Hungarian: uno20001
- Italian: PianoPoops (mattiagalati355)
- Lithuanian: minecraft6900
- Norwegian Bokmal: NahojAivk
- Russian: ArionWT
- Spanish: Suicide Cat (markalex.game)
- Turkish: ANormal Gulboy (efegulboy)
2020-04-20 00:08:05 +09:00
Tomoaki Kawada
e1756fe892
Merge pull request #889 from hourai-dev/fix-horizontal-dist
Removed unnecessary call to GetHorizontalLength() in Player.cpp
2020-04-17 13:07:38 +09:00
hourai-dev
a0aa55b24a
Removed unnecessary call to GetHorizontalLength(). 2020-04-16 12:46:13 -05:00
Tomoaki Kawada
174d9d4418
Merge pull request #888 from devnexen/netbsd_recognised
Recognises NetBSD too
2020-04-06 17:18:01 +09:00
David Carlier
393865b750 Recognises NetBSD too 2020-04-05 13:54:53 +01:00
Tomoaki Kawada
4a8e328d05
Merge pull request #883 from devnexen/bsd_unzip_fix_flag
On BSD -u and -o are mutually exclusive.
2020-03-17 16:20:07 +09:00
David Carlier
8f0ac7ceee Memory overlap fix proposal. 2020-03-01 11:15:37 +00:00