ElXreno
1799edc049
Fix build error
...
./src/game/client/components/maplayers.h:15:9: error: 'uintptr_t' does not name a type; did you mean 'uint64_t'?
15 | typedef uintptr_t offset_ptr;
| ^~~~~~~~~
| uint64_t
../src/game/client/components/maplayers.h:61:4: error: 'offset_ptr' does not name a type; did you mean 'offset_ptr32'?
61 | offset_ptr IndexBufferByteOffset()
| ^~~~~~~~~~
| offset_ptr32
In file included from ../src/game/client/components/background.cpp:8:
../src/game/client/components/maplayers.h:105:4: error: 'offset_ptr' does not name a type; did you mean 'offset_ptr32'?
105 | offset_ptr m_IndexBufferByteOffset;
| ^~~~~~~~~~
| offset_ptr32
../src/game/client/components/maplayers.h: In constructor 'CMapLayers::SQuadLayerVisuals::SQuadVisual::SQuadVisual()':
../src/game/client/components/maplayers.h:103:20: error: class 'CMapLayers::SQuadLayerVisuals::SQuadVisual' does not have any field named 'm_IndexBufferByteOffset'
103 | SQuadVisual() : m_IndexBufferByteOffset(0) {}
| ^~~~~~~~~~~~~~~~~~~~~~~
2020-02-13 17:27:39 +03:00
Dennis Felsing
cd44d6dba7
Version 12.9
2020-02-13 09:20:00 +01:00
bors[bot]
43ecec1f2f
Merge #2061
...
2061: use pid in file names of temporary files r=heinrich5991 a=def-
to prevent race conditions with multiple clients running when saving maps, config on quit, during upgrade
Co-authored-by: def <dennis@felsin9.de>
2020-02-13 00:03:23 +00:00
def
31ae4c4d5a
use pid in file names of temporary files
...
to prevent race conditions with multiple clients running when saving
maps, config on quit, during upgrade
2020-02-12 23:14:30 +01:00
def
00b74d2acb
Don't overcomplicate Success = false
2020-02-12 22:45:09 +01:00
def
598ec52892
Fix GCC 9.2.0 compilation
...
src/game/server/ddracechat.cpp:623:39: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
2020-02-05 08:22:04 +01:00
12pm
f3b82273d4
Remove leading whitespaces from save codes
2020-01-30 18:53:00 +01:00
bors[bot]
72fcf9caa8
Merge #2050
...
2050: Fix race condition. Closes #2004 r=def- a=Learath2
I guess a new state is better then a global variable
Co-authored-by: Learath <learath2@gmail.com>
2020-01-26 15:49:30 +00:00
Learath
cc8dea393d
Address feedback
2020-01-25 21:05:33 +01:00
Dennis Felsing
50d848ec43
Merge pull request #1928 from sirius1242/demo_render2
...
Demo to video converter function.
2020-01-25 21:01:08 +01:00
Learath
40dc9692aa
Fix race condition. Closes #2004
2020-01-25 17:48:32 +01:00
bors[bot]
7a3ebd5948
Merge #2041
...
2041: Strip spaces in browser (server name) r=heinrich5991 a=ChillerDragon
before:
![image](https://user-images.githubusercontent.com/20344300/72688976-b45f1d00-3b0c-11ea-8920-5328c6d721f7.png )
after:
![image](https://user-images.githubusercontent.com/20344300/72688970-9db8c600-3b0c-11ea-8636-330218d75ca1.png )
Co-authored-by: KillaBilla <robomastermail@googlemail.com>
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-01-25 12:45:36 +00:00
bors[bot]
749929431a
Merge #2040
...
2040: fixed faulty message id r=heinrich5991 a=ChillerDragon
(cherry picked from commit 9023796d27
)
Co-authored-by: oy <Tom_Adams@web.de>
2020-01-25 12:40:14 +00:00
sirius
97064a1b09
Keep trying to solve fluency issues
2020-01-25 19:14:45 +08:00
def
8779be6bd8
Looks like my comment was wrong...
2020-01-25 07:37:28 +01:00
12pm
ec42291756
Allow filtering by name in status
...
Easier to find players when the server is full
2020-01-24 14:44:54 +01:00
bors[bot]
8ab8834ccb
Merge #2048
...
2048: Display envelope name in popups r=12pm a=Learath2
A dropdown would've worked better, but we don't have one
Co-authored-by: Learath <learath2@gmail.com>
2020-01-23 20:54:49 +00:00
Learath
e567fde9d7
Names aren't unique, thinner popup
2020-01-23 21:24:48 +01:00
Learath
a2eee9a8db
Truncate properly
2020-01-23 20:48:42 +01:00
Learath
2abe4fbcfb
Display envelope name
2020-01-23 20:27:01 +01:00
12pm
9dcfcc8f10
Modify envelope index when appending maps
...
fixes #2044
2020-01-23 18:30:55 +01:00
Learath
4451fed535
Fix missing include
2020-01-23 16:07:40 +01:00
bors[bot]
a47a94ee0e
Merge #2042
...
2042: Check snap r=def- a=ChillerDragon
Co-authored-by: oy <Tom_Adams@web.de>
Co-authored-by: ChillerDragon <ChillerDragon@gmail.com>
2020-01-22 13:02:04 +00:00
ChillerDragon
610976eddd
Fix max snapshot size
2020-01-22 13:44:05 +01:00
ChillerDragon
ee825f42e9
Add snap check for dummy
2020-01-21 22:20:09 +01:00
oy
49168da784
fixed typo
...
(cherry picked from commit 3deb58d409
)
2020-01-21 22:17:20 +01:00
oy
ef3bce204c
added some checks to snap handling
...
(cherry picked from commit a09d498bc9
)
2020-01-21 22:16:28 +01:00
heinrich5991
8c4569991d
Fix indentation and formatting of str_clean_whitespaces
...
(cherry picked from commit b9c4086382
)
2020-01-19 22:38:08 +01:00
KillaBilla
75d076b3bc
changed str_clean_whitespace implementation to pkoerner's one
...
(cherry picked from commit a9cc1e8de2
)
2020-01-19 22:37:57 +01:00
KillaBilla
ba1abac52f
remove leading and trailing space from server name and forbit the use of multiple spaces
...
(cherry picked from commit a9cc1e8de2
)
2020-01-19 22:28:19 +01:00
oy
1b4131a7fd
fixed faulty message id
...
(cherry picked from commit 9023796d27
)
2020-01-19 21:30:12 +01:00
ChillerDragon
949aa124e9
Overkill optimize editor code runs 200 fps faster
2020-01-19 17:48:07 +01:00
12pm
82ac6091eb
Fix rotating rotatable tiles in switch layer
2020-01-17 18:22:41 +01:00
Corantin H
a73525361b
Fix del key removing commands while in editbox
2020-01-16 15:01:45 +01:00
Dennis Felsing
fcc25dfc65
Fix crash on pDDNetCharacter
2020-01-16 12:35:26 +01:00
heinrich5991
fe1cf90327
Restore rcon rifle
compatibility shim
...
Two more lines to keep backward compatibility.
2020-01-12 13:59:55 +01:00
sirius
d6dc811674
seems fluent problem solved, and fix a error when compile by msvs
2020-01-12 16:57:40 +08:00
bors[bot]
173ca2e179
Merge #2026
...
2026: Only start showing emoticons after their start tick has passed (fixes #2025 ) r=Learath2 a=def-
Since we can go back in time in demo player
Co-authored-by: def <dennis@felsin9.de>
2020-01-08 09:27:09 +00:00
sirius
483885b6b1
try to solve the problem that video not fluent caused by previous commits
2020-01-08 14:25:06 +08:00
sirius
d45b66938d
make latter to wait when write_frame collision between audio and video
2020-01-07 11:32:56 +08:00
bors[bot]
7d7b51011d
Merge #2030
...
2030: Move /list to ddracechat r=def- a=fokkonaut
Co-authored-by: fokkonaut <35420825+fokkonaut@users.noreply.github.com>
2020-01-06 21:39:19 +00:00
fokkonaut
c27e28b7ad
Move /list to ddracechat
2020-01-06 17:29:31 +01:00
sirius
3baba93ed2
fix the problem of audio when video fps is low
2020-01-06 11:57:24 +08:00
fokkonaut
f5b8bbc2ff
Simplify anti stuck code more
2020-01-05 11:49:21 +01:00
sirius
779afcb771
crf and preset can be set by variables
2020-01-05 11:18:51 +08:00
fokkonaut
e2b252b714
Distance can't be negative
2020-01-04 16:32:51 +01:00
sirius
0be4629cc1
forget to deal with pError
2020-01-04 17:44:12 +08:00
sirius
3967ddba00
replace same operations by call Demoplay_Play() when rendering video by render button
2020-01-04 17:08:00 +08:00
def
54d4aef145
Only start showing emoticons after their start tick has passed ( fixes #2025 )
...
Since we can go back in time in demo player
2020-01-04 10:07:14 +01:00
sirius
521e822bbb
update map fix part when rendering video
2020-01-04 17:02:00 +08:00
sirius
5350a12185
fix wired sound
2020-01-04 10:17:16 +08:00
def
600a3b0bad
Fix preprocessor
2020-01-03 22:07:02 +01:00
def
511c9d248e
Fix alignment of pixels for reading to video recorder
2020-01-03 21:43:15 +01:00
def
1e36b4df15
Move some code out as a small optimization
2020-01-03 21:42:53 +01:00
def
8d716452ba
Fix sizes so that we don't write too far
2020-01-03 21:42:19 +01:00
def
54ae929b2f
Disallow resizing windows when videorecorder is compiled in
2020-01-03 21:40:41 +01:00
def
a0362019f0
Initialize m_NextaFrame
2020-01-03 20:37:27 +01:00
Learath
d2fad6c79a
Fix demo bug
2020-01-03 12:13:40 +03:00
sirius
6803726209
extend sound buffer, try to solve segment fault problem
2020-01-03 10:26:10 +08:00
def
017b8c3621
Move DDNet-custom json code out of external directory ( fixes #2022 )
2020-01-01 20:07:04 +01:00
def
df807a7486
-DVIDEORECORDER=ON instead of -DFFMPEG=ON, fix README
...
remove unused files
2020-01-01 16:56:54 +01:00
sirius
7710b88670
Merge branch 'master' of https://github.com/ddnet/ddnet into demo_render2
2020-01-01 18:36:49 +08:00
Dennis Felsing
ba3b436139
Fix Websockets warning
2019-12-30 10:12:16 +01:00
def
b0406e335b
Remove debugging help
2019-12-29 13:35:19 +01:00
def
0236f15018
Teamscore DDNet7 fix
2019-12-29 12:55:19 +01:00
def
6da92b4b9c
Fix map_convert_07 tool
2019-12-29 12:43:41 +01:00
def
5f855b11b2
Version 12.8.1
2019-12-22 22:39:31 +01:00
Dennis Felsing
811ddb3283
Merge pull request #2008 from Learath2/dd_pr_demohotfix
...
Fix (not) small bug with demos that don't include a map
2019-12-22 22:38:22 +01:00
Learath
a882cf5196
Fix bug with slices
2019-12-22 19:09:14 +03:00
def
aa3e82cda7
Revert "Write out sql server prefix to failed_sql.sql"
...
This reverts commit c1a7961359
.
2019-12-22 09:30:33 +01:00
def
8879f17341
Revert "Still pass in SqlServer even when writing to file since we need prefix"
...
This reverts commit 6e294d938b
.
2019-12-22 09:28:14 +01:00
Dennis Felsing
83f2fc2669
Merge pull request #2012 from ChillerDragon/pr_func_style
...
Style 'void foo() {' -> 'void foo()\n{'
2019-12-21 18:18:49 +01:00
ChillerDragon
928e5407eb
Style 'void foo() {' -> 'void foo()\n{'
2019-12-21 14:35:09 +01:00
Dennis Felsing
3e08d473ab
Merge pull request #2011 from heinrich5991/pr_ddnet_fix_comment
...
Fix outdated comment
2019-12-21 08:00:38 +01:00
heinrich5991
e70fb8e43d
Fix outdated comment
2019-12-20 22:51:10 +01:00
Learath
65ec25a8a1
Fix small bug with demos that don't include a map
2019-12-18 13:51:08 +01:00
Dennis Felsing
71857fdb80
Merge pull request #2007 from heinrich5991/pr_ddnet_rm_string_h
...
Remove `strcmp` from file score
2019-12-18 13:15:10 +01:00
heinrich5991
4aeeedbbea
Remove strcmp
from file score
2019-12-18 12:52:36 +01:00
def
354541a146
Add string.h include in file_score.cpp
...
src/game/server/score/file_score.cpp: In member function ‘CFileScore::CPlayerScore* CFileScore::SearchName(const char*, int*, bool)’:
src/game/server/score/file_score.cpp:169:9: error: ‘strcmp’ was not declared in this scope
169 | if (!strcmp(r.front().m_aName, pName))
| ^~~~~~
src/game/server/score/file_score.cpp:12:1: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
11 | #include <engine/shared/console.h>
+++ |+#include <cstring>
12 |¬
2019-12-17 22:25:06 +01:00
def
a7deac1b22
Update credits
2019-12-17 21:35:40 +01:00
Dennis Felsing
d8ac51e006
Merge pull request #2000 from def-/pr-12-8
...
Version 12.8
2019-12-17 21:23:58 +01:00
Dennis Felsing
4171e8751f
Merge pull request #1939 from Learath2/dd_pr_demoload
...
Always try extracting map before fail. Fix #1886
2019-12-17 21:20:10 +01:00
Learath2
3784f5bea4
Use a UUID, Cleanup code and UI
2019-12-17 15:44:54 +01:00
Dennis Felsing
044c74f91a
Version 12.8
2019-12-16 15:36:26 +01:00
bors[bot]
aeee8f8704
Merge #1995
...
1995: Remove some unused includes r=def- a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-12-16 13:19:32 +00:00
Dennis Felsing
6e294d938b
Still pass in SqlServer even when writing to file since we need prefix
2019-12-16 10:30:56 +01:00
ChillerDragon
4a6a85124a
Remove some unused includes
2019-12-14 10:20:42 +01:00
bors[bot]
4a83a42f14
Merge #1981
...
1981: Fix: background colors being set to white r=def- a=Aerll
After changing either of background colors in ddnet tab in settings and reopening the client, both become white.
Co-authored-by: Aerll <31746984+aerll@users.noreply.github.com>
2019-12-10 12:34:48 +00:00
bors[bot]
709681604d
Merge #1989
...
1989: Remove a few unused stdio.h's r=def- a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-12-09 18:23:26 +00:00
ChillerDragon
01c873bcf7
Remove a few unused stdio.h's
2019-12-09 15:40:59 +01:00
Dennis Felsing
a27358806c
Revert "Support shotgun_speed 0"
...
This reverts commit 9d39ca888f
.
2019-12-09 14:59:10 +01:00
def
8639c902ae
map_convert_07: use regular paths
2019-12-08 23:14:56 +01:00
Dennis Felsing
b88ebbc771
Merge pull request #1985 from def-/pr-db-ddnet7
...
Add support to tell DDNet7 ranks apart from DDNet ones
2019-12-08 23:01:27 +01:00
def
28aabc5b91
Add map_convert_07 tool
...
Fixes https://github.com/ddnet/ddnet7/issues/20
2019-12-08 22:44:25 +01:00
Aerll
ff685ac1e0
fix ub
2019-12-08 20:08:00 +01:00
Aerll
7d6ad9fca5
revert
2019-12-08 20:05:13 +01:00
def
18e2232727
Add support to tell DDNet7 ranks apart from DDNet ones
...
Saves should not be loadable from one to the other.
Requires:
ALTER TABLE record_race ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER GameID;
ALTER TABLE record_teamrace ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER GameID;
ALTER TABLE record_saves ADD COLUMN DDNet7 BOOL DEFAULT FALSE AFTER Server;
2019-12-08 16:04:49 +01:00
Aerll
f8466fde7d
Fix: background colors being set to white
...
After changing either of background colors in ddnet tab in settings and reopening the client, both become white.
2019-12-05 15:51:40 +01:00
Aerll
9f4721b74b
Fix: automapper skips tiles when it shouldn't
...
In case of something like: INDEX 0 OR 1 all tiles need to be automapped.
2019-12-05 15:28:35 +01:00
bors[bot]
c31f6303cf
Merge #1977
...
1977: Support shotgun_speed 0 r=Learath2 a=def-
for mapping stationary bullets
As requested by Im 'corneum.
Co-authored-by: def <dennis@felsin9.de>
2019-12-04 16:48:06 +00:00
bors[bot]
e02cd322ad
Merge #1979
...
1979: Clean up color handling a bit r=Learath2 a=def-
- SetAlpha should be called WithAlpha and only works for RGBA
- Fix type correctness of color_scale and introduce color_invert
- Nicer hook coll color handling in RenderPlayer
- Use CRTP to have type safe WithAlpha, otherwise this would compile:
`ColorHSLA = WithAlpha(ColorRGBA(1.0f, 1.0f, 1.0f));`
Follow-up to https://github.com/ddnet/ddnet/pull/1968
Co-authored-by: Dennis Felsing <dennis@felsin9.de>
2019-12-03 12:09:57 +00:00
bors[bot]
d8cd6aa83e
Merge #1976
...
1976: Write out sql server prefix to failed_sql.sql r=Learath2 a=def-
also don't write out non-eligible records.
Co-authored-by: Dennis Felsing <dennis@felsin9.de>
2019-12-03 11:58:09 +00:00
Dennis Felsing
37ef24225e
Clean up color handling a bit
...
- SetAlpha should be called WithAlpha and only works for RGBA
- Fix type correctness of color_scale and introduce color_invert
- Nicer hook coll color handling in RenderPlayer
- Use CRTP to have type safe WithAlpha, otherwise this would compile:
ColorHSLA = WithAlpha(ColorRGBA(1.0f, 1.0f, 1.0f));
2019-12-03 11:32:55 +01:00
bors[bot]
d597322ef3
Merge #1978
...
1978: Update localizations (Thanks to Cellegen for report) r=Learath2 a=def-
Co-authored-by: Dennis Felsing <dennis@felsin9.de>
2019-12-03 10:07:34 +00:00
Dennis Felsing
5e8439acab
Merge pull request #1968 from d3fault/always-show-hook-coll-signaling
...
Invert hook coll colors when using cl_show_hook_coll_always and +showhookcoll is pressed
2019-12-02 09:50:34 +01:00
d3fault
5261ca25fe
Invert hook coll colors when using cl_show_hook_coll_always and +showhookcoll is pressed
...
This allows you to still see other players signaling you with their hook coll
when you have cl_show_hook_coll_always enabled.
2019-12-02 01:30:20 -07:00
Dennis Felsing
0498df2508
Update localizations (Thanks to Cellegen for report)
...
- Remove duplicate laser entries
- Update menus_settings.cpp comment for scripts
- Update instructions for scripts
- Run script to get updated localizations
2019-12-02 09:09:01 +01:00
bors[bot]
33d88f647c
Merge #1974
...
1974: more typesafty in the graphics. introduced the IGraphics::CTextureHandle r=def- a=ChillerDragon
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
Co-authored-by: Magnus Auvinen <magnus.auvinen@gmail.com>
2019-11-27 17:55:45 +00:00
bors[bot]
d589f266dc
Merge #1973
...
1973: Rename rifle to laser r=def- a=ChillerDragon
This makes it easier to copy code from/to 0.7
23df3c609e
For the user only the rcon command to give/remove ``laser``/``unlaser`` changes.
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-11-27 17:36:03 +00:00
def
9d39ca888f
Support shotgun_speed 0
...
for mapping stationary bullets
2019-11-27 18:29:39 +01:00
Dennis Felsing
c1a7961359
Write out sql server prefix to failed_sql.sql
2019-11-25 14:04:57 +01:00
Magnus Auvinen
6a6a5f00c9
more typesafty in the graphics. introduced the IGraphics::CTextureHandle
...
Edited by @ChillerDragon to fit in ddnet
(cherry picked from commit cb95e8dfe8
)
2019-11-22 18:08:37 +01:00
ChillerDragon
96c9b1ab73
Rename rifle to laser
...
This makes it easier to copy code from/to 0.7
23df3c609e
2019-11-22 15:37:18 +01:00
ChillerDragon
227a223c32
Fix a few names in popups
2019-11-22 12:28:34 +01:00
ChillerDragon
0f76c89d8a
Save selected UI settings page
...
Inspired by @SushiTee's teeworlds commit:
65cc8f7fd9
2019-11-17 18:11:33 +01:00
sirius
76a80fe01b
deal with warnings
2019-11-12 21:41:30 +08:00
bors[bot]
c26ac8af86
Merge #1965
...
1965: Use an enum for netclient indices r=def- a=ChillerDragon
Co-authored-by: ChillerDragon <chillerdragon@gmail.com>
2019-11-11 16:55:17 +00:00
ChillerDragon
9c3447dd17
Use an enum for netclient indices
2019-11-10 13:46:27 +01:00
trml
3986925761
Optimize character evolve
2019-11-09 22:49:53 +01:00
def
975a0bc9b3
Add help text for negative parameter for worst players
2019-11-05 18:28:34 +01:00
ChillerDragon
1a957f0abe
Fix typo 'user' -> 'use'
2019-11-05 09:16:54 +01:00
Dennis Felsing
785ec3d345
Expire server info on connected/drop events
2019-11-04 15:45:55 +01:00
Learath2
c2bcd3bd4d
Fix bug
2019-11-04 01:06:52 +01:00
bors[bot]
0de012572b
Merge #1955
...
1955: Cache serverinfo responses r=def- a=Learath2
I'm not sure I like it but it works
Co-authored-by: Learath2 <learath2@gmail.com>
2019-11-03 20:09:21 +00:00
Learath2
c0b0f48d16
Oops
2019-11-03 20:58:35 +01:00
bors[bot]
7d07b311fd
Merge #1956
...
1956: Fix uninitialized variable r=Learath2 a=def-
As reported by valgrind --tool=memcheck:
==344082== Conditional jump or move depends on uninitialised value(s)
==344082== at 0x483BC85: strlen (vg_replace_strmem.c:461)
==344082== by 0x5B9E61D: __vfprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x5BB0409: __vsnprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x222AE7: str_format (system.c:2350)
==344082== by 0x2196AB: CStorage::GetPath(int, char const*, char*, unsigned int) (storage.cpp:274)
==344082== by 0x219DDD: CStorage::RemoveFile(char const*, int) (storage.cpp:409)
==344082== by 0x255D3C: CClient::DemoRecorder_Stop(int, bool) (client.cpp:3546)
==344082== by 0x2569E7: CClient::ConchainReplays(IConsole::IResult*, void*, void (*)(IConsole::IResult*, void*), void*) (client.cpp:3727)
==344082== by 0x1F4659: CConsole::Con_Chain(IConsole::IResult*, void*) (console.cpp:1169)
==344082== by 0x1E4C2C: CConsole::ExecuteLineStroked(int, char const*, int, bool) (console.cpp:504)
==344082== by 0x1E4F37: CConsole::ExecuteLine(char const*, int, bool) (console.cpp:558)
==344082== by 0x1E5240: CConsole::ExecuteFile(char const*, int, bool, int) (console.cpp:604)
Co-authored-by: def <dennis@felsin9.de>
2019-11-03 19:58:09 +00:00
def
fdaafea6b5
Also init m_aClients[*].m_Latency
...
as reported by valgrind --tool=memcheck:
==376722== Conditional jump or move depends on uninitialised value(s)
==376722== at 0x1CDBDB: int maximum<int>(int, int) (math.h:79)
==376722== by 0x216A46: CPlayer::Tick() (player.cpp:174)
==376722== by 0x1FB308: CGameContext::OnTick() (gamecontext.cpp:658)
==376722== by 0x1C60AF: CServer::Run() (server.cpp:2046)
==376722== by 0x1CB099: main (server.cpp:3040)
==376722==
==376722== Conditional jump or move depends on uninitialised value(s)
==376722== at 0x183F27: int minimum<int>(int, int) (math.h:77)
==376722== by 0x216A65: CPlayer::Tick() (player.cpp:175)
==376722== by 0x1FB308: CGameContext::OnTick() (gamecontext.cpp:658)
==376722== by 0x1C60AF: CServer::Run() (server.cpp:2046)
==376722== by 0x1CB099: main (server.cpp:3040)
2019-11-03 18:54:25 +01:00
Learath2
c4d18118c1
Use automatic storage for the data
2019-11-03 18:31:05 +01:00
def
f9598c8ba8
Don't access m_aClients wiht invalid ClientID
2019-11-03 18:10:30 +01:00
def
258eaf5a98
Fix uninitialized variable
...
As reported by valgrind --tool=memcheck:
[201==344082== Conditional jump or move depends on uninitialised value(s)
==344082== at 0x483BC85: strlen (vg_replace_strmem.c:461)
==344082== by 0x5B9E61D: __vfprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x5BB0409: __vsnprintf_internal (in /usr/lib/libc-2.30.so)
==344082== by 0x222AE7: str_format (system.c:2350)
==344082== by 0x2196AB: CStorage::GetPath(int, char const*, char*, unsigned int) (storage.cpp:274)
==344082== by 0x219DDD: CStorage::RemoveFile(char const*, int) (storage.cpp:409)
==344082== by 0x255D3C: CClient::DemoRecorder_Stop(int, bool) (client.cpp:3546)
==344082== by 0x2569E7: CClient::ConchainReplays(IConsole::IResult*, void*, void (*)(IConsole::IResult*, void*), void*) (client.cpp:3727)
==344082== by 0x1F4659: CConsole::Con_Chain(IConsole::IResult*, void*) (console.cpp:1169)
==344082== by 0x1E4C2C: CConsole::ExecuteLineStroked(int, char const*, int, bool) (console.cpp:504)
==344082== by 0x1E4F37: CConsole::ExecuteLine(char const*, int, bool) (console.cpp:558)
==344082== by 0x1E5240: CConsole::ExecuteFile(char const*, int, bool, int) (console.cpp:604)
2019-11-03 18:05:42 +01:00
Learath2
52cca29cd9
Use a std::list, improve variable naming
2019-11-03 15:39:32 +01:00
sirius
8c48e7d633
some small changes
2019-11-03 11:20:24 +08:00
Learath2
3d495a9936
Initialize variables
2019-11-03 01:53:50 +01:00
Learath2
79e4651d5b
Only update serverinfo when needed
2019-11-03 01:07:10 +01:00
Learath2
7f0589bff7
Cache serverinfo responses
2019-11-03 00:33:30 +01:00
sirius
4cc03af9a9
remove useless functions for previous audio sync
2019-11-02 18:32:48 +08:00
sirius
e910fe404f
Direct mix when recording audio now, and seems solve the stuck problem when
...
DDNet is not the focusing window
2019-11-02 18:21:47 +08:00
sirius
f2ffa996c2
GetSync calculate only when m_Recording true (otherwise sometimes core dump)
2019-11-01 10:52:24 +08:00
Sirius
45263ebdd0
Merge branch 'master' into demo_render2
2019-10-31 22:08:49 +08:00
sirius
ae1ff28579
not abort sample when sync now
2019-10-31 22:01:12 +08:00
Dennis Felsing
516bc98436
Version 12.7.3
2019-10-31 14:37:09 +01:00
WsYFU
1a16f5b5f0
Update serverbrowser.cpp
2019-10-31 16:16:35 +03:00
sirius
5ad8028aa4
sync audio frame with video frame number
2019-10-31 20:02:41 +08:00
sirius
99f6b66fbd
solve sync between video and audio by magic number
2019-10-31 17:37:38 +08:00
sirius
99df692e00
interleaving problem solved, but a little misplacement of video and audio stream
2019-10-31 17:00:05 +08:00
sirius
0a6edd02ca
solve the problem when video finished
2019-10-30 22:26:45 +08:00
sirius
9f009e0e04
interleaving problem seems solved, but still have some problem when playing by mplayer
2019-10-30 22:10:44 +08:00
sirius
f0e7ca200f
remove two first audio frames to avoid noise in the begining
2019-10-30 10:56:20 +08:00
sirius
a7c2a65ebc
audio seems correct, but need more elegant way, and still bad interleaving
2019-10-30 00:01:25 +08:00
12pm
f66dc75400
Fix crash when switch (un)deep number is 0
2019-10-27 14:28:40 +01:00