Commit graph

4162 commits

Author SHA1 Message Date
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
oy 6f980c33e4
show AppVeyor build status in the readme 2019-02-03 20:11:21 +01:00
oy 6df2d43f8f fixed some warnings 2019-02-03 20:04:17 +01:00
oy 397e88e1d7 use stable_sort for sorting 2019-02-03 19:58:15 +01:00
oy 6deb18e8b0 changed swap to tl_swap to prevent interference with the std one 2019-02-03 18:32:25 +01:00
oy e5f2c4f91d removed duplicate code. closes #2005 2019-02-03 17:30:29 +01:00
oy 57a73039c3
Merge pull request #2008 from LordSk/feature/scrollbar_api
Scroll region api
2019-02-03 16:47:18 +01:00
oy 3b1bea2b8b
Merge pull request #2010 from heinrich5991/pr_fallthrough
Remove case fallthroughs from the code base
2019-02-03 13:28:32 +01:00
oy 802ecc5136
Merge pull request #2011 from heinrich5991/pr_format_security
Make use of the `-Wformat=2` flag
2019-02-03 13:08:24 +01:00
oy 040b02c627
Merge pull request #2012 from Dune-jr/codacy-fixes
Fix a few relevant issues raised by Codacy. #2009
2019-02-03 12:47:00 +01:00
oy a9df25ee21
Merge pull request #2013 from heinrich5991/pr_circleci_cmake
Test CMake on CircleCI
2019-02-03 12:38:07 +01:00
oy 4b94271810
Merge pull request #2015 from heinrich5991/pr_appveyor
Add AppVeyor CI
2019-02-03 12:35:14 +01:00
heinrich5991 e117ee0ef1 Recursively create directories for the data dir
Nonrecursively creating directories led to a failure --
`.local/share/teeworlds` could not be created if `.local/share` did not
exit beforehand.

Fixes #2014.
2019-02-03 11:50:01 +01:00
heinrich5991 553db4cfaa Fix the rest of MSVS compiler warnings
- warning C4099: type name first seen using 'class' now seen using 'struct'
- warning C4291: no matching operator delete found; memory will not be
  freed if initialization throws an exception (false positive)
- warning C4305: truncation from 'double' to 'float'
2019-02-03 11:25:25 +01:00
heinrich5991 ea80f967a9 Fix client masks (C4334)
Bug discovered by compiler warning C4334 which says:

>'<<': result of 32-bit shift implicitly converted to 64 bits (was
>64-bit shift intended?)
2019-02-03 11:25:24 +01:00
heinrich5991 63d17483d2 Add automatic dependency download to CMake for Windows 2019-02-03 11:25:24 +01:00
heinrich5991 99843b7a70 Add AppVeyor CI
This automatically builds every revision on Windows as well, helping us
catch bugs or compilation failures faster
2019-02-03 11:24:46 +01:00
heinrich5991 9bf814008c Also try running the server on CircleCI 2019-02-03 02:31:16 +01:00
heinrich5991 ce59e97724 Make versionsrv's dependency on nethash.cpp explicit 2019-02-03 02:27:19 +01:00
heinrich5991 bb8ec6b836 Test CMake on CircleCI 2019-02-03 02:22:15 +01:00
heinrich5991 b617c8b0b7 Fix an unused variable and a signed-unsigned comparison 2019-02-03 02:22:15 +01:00
Jordy Ruiz 88a0400982 Fix a few issues raised by Codacy 2019-02-03 02:00:24 +01:00
heinrich5991 de344ba221 Fix incorrect format strings 2019-02-03 01:56:17 +01:00
heinrich5991 d75d4535ae Remove non-constant format strings
Fix two bugs on the way:

1) Headers in the server browser were only localized at start.

2) The message "All players were moved to the red/blue team" wasn't
   shown.
2019-02-03 01:55:46 +01:00
heinrich5991 89295f1db9 Annotate dbg_msg and str_format for -Wformat=2
This allows the compiler to determine wheter format strings are correct.
2019-02-03 01:54:53 +01:00
heinrich5991 dbf056b253 Simplify code using str_comp a bit 2019-02-03 00:56:05 +01:00
heinrich5991 c21cc0ad00 Remove last remaining case fallthrough in the codebase 2019-02-03 00:55:10 +01:00
heinrich5991 d9cf5059a7 Refactor spec mode selection without case fallthrough
This allows to turn on the warning for unexpected case fallthroughs. As
a side effect, this also reduces code duplication, halving the number of
lines required for this logic.
2019-02-03 00:54:12 +01:00
LordSk c66037ab07 Small fix to the doc 2019-02-02 19:05:08 +01:00