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
oy
ec81aad706
Merge pull request #1997 from Dune-jr/fix-nonemptyfilter
...
No longer incorrectly show bot servers when 'Has people playing' and 'Hide bots' are ticked
2019-01-27 13:29:15 +01:00
oy
d51a731ec6
Merge pull request #1987 from Dune-jr/fix-join-hover
...
Add fade effect to join friend button
2019-01-27 13:28:40 +01:00
oy
1dfe209414
Merge pull request #1996 from Ryozuki/patch-1
...
Remove the no longer used info.png from cmake
2019-01-27 13:24:58 +01:00
Fudgyking
86d934258d
Add check before resetting the local map list
2019-01-26 17:14:44 -05:00
Jordy Ruiz
ff22c4106a
Browser: make the sliding window of join friend button IDs global to all friend lists
2019-01-25 12:03:34 +01:00
Jordy Ruiz
12a80f81f6
No longer incorrectly show bot servers when 'Has people playing' and 'Hide bots' are ticked
2019-01-25 11:45:21 +01:00
Ryozuki
34781eaa92
Remove the no longer used info.png from cmake
2019-01-25 00:20:56 +01:00
oy
6ec984bbd5
let the download script remove the extraction folder in case it exists
2019-01-19 13:42:45 +01:00
oy
689be6529d
Merge pull request #1990 from Dune-jr/fix-automap-random
...
Fix automapper randomization
2019-01-19 11:42:17 +01:00
oy
f469fb41da
added a 5 second cooldown for responding to a banned user that wants to connect (econ, server). otherwise silently ignore the attempt
2019-01-19 11:29:04 +01:00