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
LordSk
48968faeda
Added a small documentation to the api
2019-02-02 14:16:46 +01:00
LordSk
81efacb6cc
Reorganize piece of code
2019-02-02 13:43:35 +01:00
LordSk
1f8936ab51
Fixed scroll not being reset when scrollbar is not shown, replace old scrollbar code with new one in the Settings>Controls page.
2019-02-02 13:23:21 +01:00
LordSk
cfbe266e6b
Added api and UI()->IsClipped()
2019-02-01 18:33:51 +01:00
oy
0b642df946
Merge pull request #2007 from Dune-jr/fix-scorehud-id
...
Fix missing GetClientIdRectSize in textwidth computation for score hud
2019-01-31 20:51:41 +01:00
Jordy Ruiz
3b5107a874
Fix missing GetClientIdRectSize in textwidth computation for score hud
2019-01-31 15:37:20 +01:00
oy
4c686e7486
Merge pull request #2002 from nheir/fix_whisper
...
check if whisper message has a valid target
2019-01-29 21:29:06 +01:00
nheir
042f2bb567
filter whisper target id like other chat messages
2019-01-27 22:20:45 +01:00
nheir
e8afe5d238
check if whisper message has a valid target
2019-01-27 22:11:54 +01:00
oy
4ae94d4745
Merge pull request #2001 from Fudgyking/fix-maplist-crash
...
Add check before resetting the local rcon map list
2019-01-27 13:32:32 +01:00