Commit graph

4190 commits

Author SHA1 Message Date
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
Jordy Ruiz d62df6e42e Add missing sound icons in CMakeLists.txt 2019-03-07 12:16:44 +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
oy 8e8e05c4f3
Merge pull request #2033 from heinrich5991/pr_cmake_msse2
Add -msse2 to compile flags on x86 only if necessary
2019-02-10 19:41:26 +01:00
heinrich5991 732b003b8d Add -msse2 to compile flags on x86 only if necessary 2019-02-10 19:14:04 +01:00
oy d0294dbe5f let SDL use the X11 XRandR window manager per default. there's a command "gfx_use_x11xrandr_wm" to turn that off. this should help with override redirect issues 2019-02-10 19:13:32 +01:00
oy e6170cd1f0 Merge branch 'master' of https://github.com/teeworlds/teeworlds 2019-02-10 18:48:56 +01:00
oy fdc14f0738 added a config option for old gcc compilers which need -msse2 flag to use _mm_pause (https://gcc-patches.gcc.gnu.narkive.com/Ypx83P9u/patch-rfa-move-x86-mm-pause-out-of-pragma-target-sse-scope) 2019-02-10 18:48:37 +01:00
oy 508f56f25f
Merge pull request #2032 from heinrich5991/pr_positional
Allow translations to reorder string substitutions
2019-02-10 18:19:56 +01:00
heinrich5991 ddd2b93190 Allow translations to reorder string substitutions
This is supported on Windows
(https://docs.microsoft.com/en-us/cpp/c-runtime-library/printf-p-positional-parameters)
and on POSIX, so basically everywhere.

Add some tests to verify that the target system does indeed support
these positional parameters.
2019-02-10 17:42:19 +01:00
oy e76cc8cb6a
Merge pull request #2031 from heinrich5991/pr_test
Add possibility to test
2019-02-10 17:37:30 +01:00
heinrich5991 1064ee4729 Run tests on AppVeyor 2019-02-10 17:00:08 +01:00
heinrich5991 cb887180f2 Run the tests on CircleCI 2019-02-10 17:00:08 +01:00
heinrich5991 ae36f37e83 Automatically download GTest on Windows 2019-02-10 17:00:08 +01:00
heinrich5991 97febe41ba Add status message for missing GTest 2019-02-10 17:00:08 +01:00
heinrich5991 48129f0fa7 Add possibility to test
This uses GTest as a test framework.
2019-02-10 17:00:08 +01:00
oy dd3c7a9985 Merge branch 'master' of https://github.com/teeworlds/teeworlds 2019-02-09 20:14:56 +01:00
oy 6febde3c9c fixed filtering servers by maximum ping. closes #2026 2019-02-09 20:13:03 +01:00
oy 8a34cebec0
Merge pull request #2029 from Dune-jr/fix-locale-convert
Fix missing locale strings when running export scripts
2019-02-09 19:37:38 +01:00
Jordy Ruiz bb4a8dc14e Fix Localize with no space between parameters not being detected, fix paths 2019-02-09 19:28:59 +01:00
Jordy Ruiz 96561a4f3a Fix browser localization hints 2019-02-09 19:23:12 +01:00
oy 3c165cce00 Adjusted the "search" label and server/player info in the server browser. closes #1986 2019-02-07 19:23:03 +01:00
oy 6faddbc87b Merge branch 'master' of https://github.com/teeworlds/teeworlds 2019-02-07 17:42:01 +01:00
oy d68d9848db added missing colons #1986 2019-02-07 17:41:27 +01:00
oy 6e8133fe79
Merge pull request #2023 from Fudgyking/show-spec-votes
Show votes in spec with a message indicating that you cannot vote
2019-02-07 17:06:27 +01:00
Fudgyking 8a4ce5c26c Show votes in spec with a message indicating that you cannot vote 2019-02-05 21:34:13 -05:00
oy e1b9f6f2ad Merge branch 'master' of https://github.com/teeworlds/teeworlds 2019-02-05 20:37:33 +01:00
oy d081dbb263 fixed a c&p mistake 2019-02-05 20:36:56 +01:00
oy f0ebc6272b
fixed appveyor badge link 2019-02-05 17:18:05 +01:00
oy aefda9e9d7 added hover and active effect to edit boxes. closes #1771 2019-02-04 18:52:49 +01:00
oy db344290e0 added hover effect to drop down menus 2019-02-04 18:41:30 +01:00
oy ed458117d4 added grab and hover effect to the other scrollbars as well 2019-02-04 17:34:10 +01:00
oy 7977b46d36 end double mouse click state when doing a new single click. closes #1998 2019-02-04 17:06:32 +01:00
oy 5b30a168bb
Merge pull request #2019 from LordSk/fix/sr_scrollbar_grab
Fixed scroll region slider being grabbed before specifically clicking on it
2019-02-04 16:43:29 +01:00
LordSk 8e651de217 Fixed slider being grabbed when pressing mouse1 outside the slider rect and then moving hover it 2019-02-04 16:37:19 +01:00
oy 92641472d5 added an error check when polling the clipboard text 2019-02-04 16:35:23 +01:00
oy 4cb916db86 sanitize clipboard string. closes #1992 2019-02-04 16:32:38 +01:00
oy a1b8926f51 swap teamscore when swapping teams. closes #2004 2019-02-04 16:15:51 +01:00
oy 8c544e6e7c fixed displaying of the score in the server browser scoreboard 2019-02-04 16:01:51 +01:00
oy 5e01ed3352 added an initialization 2019-02-04 11:38:13 +01:00
oy a570538bad fixed last commit 2019-02-04 11:16:48 +01:00
oy 359f327537 fixed another array intitialization 2019-02-04 11:12:01 +01:00
oy a7ce3b7d9e fixed an array initialization and removed some magic values. #2016 2019-02-04 10:58:00 +01:00
oy 79fe483b83
Merge pull request #2017 from heinrich5991/pr_hardening
Add more hardening flags
2019-02-04 10:42:12 +01:00
heinrich5991 ad0946df37 Add more hardening flags
- `-fcf-protection` to protect the targets of indirect jumps and
  function returns.
- `-D_GLIBCXX_ASSERTIONS` for bounds-check assertions in the STL.
- `-fstack-clash-protection` to protect against stacks overwriting each
  other.
- `-fstack-protector-strong` instead of `-fstack-protector-all` as it
  apparently gives basically the same benefits at less slowdown.

These flags were taken from
https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc/.
2019-02-03 23:22:40 +01:00
oy f8ba164268 removed old deprecated scale code 2019-02-03 20:57:57 +01:00
oy 5b002b0eac fixed some warnings 2019-02-03 20:28:10 +01:00
oy e1efafce39
fixed last commit 2019-02-03 20:20:44 +01:00