Commit graph

4238 commits

Author SHA1 Message Date
oy 594796cd42
Merge pull request #2065 from Dune-jr/feature-stayasspec
Make it so that spectators stay as spectators when map changes
2019-03-17 19:15:30 +01:00
Jordy Ruiz a200bd380f Fix clients connecting as spec getting stuck on map download (@Oy) 2019-03-17 18:43:57 +01:00
oy 86f0075334
Merge pull request #2064 from Dune-jr/fix-notifications-init
Fix sound notifications being displayed when client loads too quick
2019-03-17 18:07:16 +01:00
Jordy Ruiz c9fc5c6cb6 Make it so that spectators stay as spectators when map changes 2019-03-16 21:57:02 +01:00
Jordy Ruiz 5b8ce27682 Fix sound notifs being displayed when client loads too quick 2019-03-16 19:22:24 +01:00
oy f4c0f57bef
Merge pull request #2022 from heinrich5991/pr_readme_build
Add build instructions to readme.md
2019-03-11 19:09:44 +01:00
heinrich5991 ef651cfeb0 Add macOS and MinGW build instructions to readme.md 2019-03-11 18:59:06 +01:00
oy adf4035c31
Merge pull request #2061 from heinrich5991/pr_fix_deps
Fix version of teeworlds-libs to download
2019-03-11 17:51:11 +01:00
oy bde59d73de
Merge pull request #2060 from heinrich5991/pr_mac_ci
Add Travis CI for macOS builds
2019-03-11 17:50:45 +01:00
oy ba0c090a4c
Merge pull request #2059 from Dune-jr/feature-soundnotif2
Upscale sound_icons
2019-03-11 17:49:14 +01:00
heinrich5991 b0725775e8 Fix version of teeworlds-libs to download
This allows us to update the repository without breaking old builds.
2019-03-11 16:03:34 +01:00
heinrich5991 963292d0f0 Fix clang warnings
src/engine/client/sound.cpp:54:43: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
static CSample m_aSamples[NUM_SAMPLES] = {0};
                                          ^
                                          {}
src/engine/client/sound.cpp:55:40: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
static CVoice m_aVoices[NUM_VOICES] = {0};
                                       ^
                                       {}
2019-03-10 18:53:27 +01:00
heinrich5991 dae85e244c Stop using deprecated APIs on macOS in server launcher
(cherry picked from commit dcbd8197a4)
2019-03-10 18:53:27 +01:00
heinrich5991 94bbe2bc09 Add Travis CI for macOS builds 2019-03-10 18:53:27 +01:00
Jordy Ruiz b34fbe07ce Upscale sound_icons 2019-03-10 12:35:48 +01:00
oy e7a716aff4
Merge pull request #2039 from Dune-jr/feature-soundnotif
Implement audio toggling with visual effects
2019-03-08 19:35:59 +01:00
Jordy Ruiz bc430595eb Abort in RenderSoundNotification if no active notification 2019-03-08 19:18:37 +01:00
Jordy Ruiz 456c4ac79b Clean up notifications code, fix variable naming 2019-03-08 19:17:05 +01:00
oy ac6f1ac506
Merge pull request #2055 from heinrich5991/pr_sha256
Use more secure hash function for map downloads
2019-03-08 19:10:56 +01:00
heinrich5991 1f0b2f6ee5 Use more secure hash function for map downloads
SHA256 was chosen because it is reasonably standard, the file names
don't explode in length (this rules out SHA512) and it is supported by
basically all versions of OpenSSL (this rules out SHA512/256 and SHA3).

The protocol is changed in a backward compatible way: The supporting
server sends the SHA256 corresponding to the map in the `MAP_CHANGE`
message after the previously known fields.

For servers not supporting this protocol, the client falls back to
simply opening maps like in the previous scheme.

The filename scheme for downloaded maps changed from `{name}_{crc}.map`
to `{name}_{sha256}.map` if the SHA256 is known, otherwise it falls back
to the previous scheme.

Fixes #1691.
2019-03-08 18:59:20 +01:00
heinrich5991 b986e54039 Add the SHA256 cryptographic hash function
Use the OpenSSL implementation of SHA256 if it is supported, otherwise
fall back to a public domain one.
2019-03-08 02:22:57 +01:00
oy 993c21dff5
Merge pull request #2053 from heinrich5991/pr_fix_findfile
Fix `IStorage::FindFile` in case no CRC or size are specified
2019-03-07 19:29:31 +01:00
oy 2c4d241d07
Merge pull request #2054 from heinrich5991/pr_gitignore_gtest
Add GTest-related stuff to .gitignore
2019-03-07 19:18:35 +01:00
oy 225d3243f0
Merge pull request #2052 from heinrich5991/pr_cmake_invalidorder
Add a notification when files are not sorted in CMake
2019-03-07 19:17:30 +01:00
oy b7823b2886
Merge pull request #2047 from tsoding/joystick-support
Add Joystick Support
2019-03-07 19:11:25 +01:00
rexim 9e7762113d Make default joystick axis assume the standard left stick 2019-03-07 22:09:16 +07:00
rexim b42d26f611 Move m_pJoystick zeroing to ctor 2019-03-07 22:02:48 +07:00
rexim 9af7fca265 Fix code style 2019-03-07 22:01:18 +07:00
heinrich5991 34c15adc33 Add GTest-related stuff to .gitignore 2019-03-07 14:53:54 +01:00
heinrich5991 00cfc4f205 Fix IStorage::FindFile in case no CRC or size are specified
Previously, it only returned files with CRC 0 and size 0 (so empty
files) in case you didn't specify CRC and size.

Also add some tests covering that behavior.
2019-03-07 13:05:47 +01:00
heinrich5991 fbdc6d69be Add a notification when files are not sorted in CMake
Would've solved the problem in #2039 faster.
2019-03-07 12:19:44 +01:00
Jordy Ruiz d62df6e42e Add missing sound icons in CMakeLists.txt 2019-03-07 12:16:44 +01:00
oy 9e16b376bb reset reason field after calling a vote. closes #2041 2019-03-06 18:49:23 +01:00
masahirotoyomura b6c0abe993 added Padding to some dialogs 2019-03-06 17:37:20 +01:00
rexim 23b8508352 Remove verbose debug logging 2019-03-06 02:50:23 +07:00
rexim ca56cba2a7 Replace NULL with 0 2019-03-06 02:48:57 +07:00
rexim aab993f7d9 Match config variable name with console variable name 2019-03-06 02:40:33 +07:00
rexim 78e16d9238 m_Joystick -> m_pJoystick 2019-03-06 02:38:04 +07:00
rexim bd4d5e047d Add Joystick Support 2019-03-06 00:46:54 +07:00
oy 4e14318cd1 fixed resetting player stats when a player leaves and joins 2019-02-27 18:56:24 +01:00
oy 05fe3e2694 fixed some mingw warnings 2019-02-27 18:53:59 +01:00
oy bfee7275c7
Merge pull request #2044 from Dune-jr/fix-screen-clamp
Fix clamping of screen index value
2019-02-21 12:06:39 +01:00
Jordy Ruiz a9b4f8ad8c Fix clamping of screen index value 2019-02-21 11:58:15 +01:00
oy ea4427d4ea
Merge pull request #2040 from nheir/fix/scroll_detail_scoreboard
fix scrollbar in serverbrowser's detail scoreboard
2019-02-21 08:33:01 +01:00
oy c3a0afe1fb
Merge pull request #2038 from Dune-jr/fix-spectatornotif
Adjust spectator notification to show up for non-empty servers only
2019-02-21 08:29:52 +01:00
heinrich5991 a923b0155e Add a link to the bam build docs 2019-02-20 20:28:51 +01:00
nheir d82d5f2049 fix scrollbar in serverbrowser's detail scoreboard 2019-02-18 21:39:38 +01:00
Jordy Ruiz ce54eca85d Extend default key binds to support modifiers, add ctrl+s as a default for sound toggle, update controls settings 2019-02-16 19:33:21 +01:00
Jordy Ruiz e7c502e537 Add a notifications component, implement sound toggling effects, and add a couple of icons for that 2019-02-16 19:32:35 +01:00
Jordy Ruiz 2f5ca88b4d Adjust spectator notification to show up for non-empty servers only 2019-02-16 13:12:12 +01:00