Robert Müller
c9b2872459
Merge pull request #7707 from furo321/revert-highdetail
...
Revert removal of "Detail" from sound layers.
2023-12-25 09:51:51 +00:00
furo
76fa62d8fb
Revert removal of "Detail" from sound layers.
2023-12-25 01:17:36 +01:00
Corantin H
5599de3153
Use CEditorComponent
methods instead of only CMapView
...
Small changes to `CEditorObject`
2023-12-23 14:45:36 +01:00
Robert Müller
fa0b218eed
Use str_copy
instead of mem_copy
for skin names
...
The `mem_copy` function does not respect zero termination so it reads beyond the size of the source buffer, if it's smaller than the destination buffer.
2023-12-22 22:14:15 +01:00
Robert Müller
32b32d7052
Remove unnecessary checks for number of command arguments
...
The argument of `add_favorite_skin` and `remove_favorite_skin` is mandatory, so the callback will never be called without it.
2023-12-22 22:13:58 +01:00
Robert Müller
6fc3470a8d
Check for valid favorite skin name, add CSkin::IsValidName
...
Favorite skin names were previously not escaped as intended when saving, as the variable `aNameEscaped` was unused so the original skin name was saved instead of the escaped one. Escaping is not really necessary, as skins should not contain `\` and `"` anyway and it was only possible to add such favorites through the console or config files. Instead of escaping the favorite skin names when saving, now favorite skin names are validated when they are added so no escaping is necessary. Skins names are considered valid when they have a length of 1-23 bytes and don't contain the characters `/`, `\` and `"`.
2023-12-22 22:13:33 +01:00
Corantin H
34a26daeba
Fix wrong value type for some map settings in gamecontext.cpp
...
Fix some help texts starting with a lowercase character
2023-12-22 18:15:37 +01:00
Corantin H
949eea08df
Do not adjust console selection when keeping scroll offset
...
Also decrease `m_NewLineCounter` by the entry line count.
2023-12-21 00:22:12 +01:00
Robert Müller
d228064361
Fix console selection not adjusted anymore when entries added
...
The current mouse-based console selection was not being adjusted anymore when new lines are added to the console, as the `m_NewLineCounter` variable was decremented to `0` before the relevant check for `m_NewLineCounter > 0`.
2023-12-20 17:55:10 +01:00
heinrich5991
ddd10f2308
Merge pull request #7648 from dobrykafe/pr-master-info
...
report the ddrace team to master instead of the normal team
2023-12-20 15:27:32 +00:00
dobrykafe
40d56611ba
report ddrace team to master
2023-12-20 16:09:10 +01:00
Edgar
95cd183e1e
Merge pull request #7681 from Robyt3/Mapitems-Sound-DataSize-Check
...
Use `GetDataSize` instead of `CMapItemSound::m_SoundDataSize`
2023-12-20 10:37:54 +00:00
furo
1c6e629a9b
Add missing return statements to AttemptJoinTeam
2023-12-20 04:10:51 +01:00
Robert Müller
3e89bbb15e
Clear console selection only when scroll position is changed
...
The selection is only cleared because it would be incorrect after scrolling, but it doesn't need to be cleared if the scroll position does not change, e.g. when pressing Home while already at the top of the backlog.
2023-12-19 20:31:22 +01:00
Robert Müller
a1b603a424
Merge pull request #7682 from furo321/clamp-volume-env
...
Clamp volume envelopes between 0.0f and 1.0f
2023-12-18 18:47:57 +00:00
furo
fd2582c267
Clamp volume envelopes between 0.0f and 1.0f
2023-12-18 18:35:13 +01:00
Robert Müller
aa15d9b19b
Use GetDataSize
instead of CMapItemSound::m_SoundDataSize
...
Do not use the `CMapItemSound::m_SoundDataSize` value as it is redundant. This value could also be incorrect because it can be freely set by the map creator (tool).
Instead, use the map/datafile function `GetDataSize` to get the true size of the sound data in the file.
The `m_SoundDataSize` value is still written to map files for compatibility with old versions.
2023-12-18 17:58:42 +01:00
Dennis Felsing
f298b28026
Merge pull request #7678 from eghwand/pr_showlocaltimealways_setting
...
add ui setting for cl_show_local_time_always
2023-12-18 07:56:01 +00:00
Dennis Felsing
c0ed140a31
Version 17.4.2
2023-12-18 08:58:10 +01:00
Egehan
87063d048c
add ui setting for cl_show_local_time_always
2023-12-17 19:28:35 +03:00
Robert Müller
4ddf1dfdd5
Merge pull request #7674 from furo321/history-login-prompt
...
Disable cycling through command history when logging in to rcon.
2023-12-17 15:55:04 +00:00
furo
2f89297395
Disable cycling through command history when logging in to rcon.
2023-12-17 15:32:18 +01:00
heinrich5991
4af28fd2d8
Merge pull request #7672 from furo321/bitwise-instead-of-logical
...
Fix clang warning `-Wbitwise-instead-of-logical`
2023-12-17 00:11:06 +00:00
furo
c984c6895a
Fix clang warning -Wbitwise-instead-of-logical
2023-12-17 00:54:23 +01:00
Dennis Felsing
4429347f83
Merge pull request #7662 from furo321/more-team-commands
...
Add `/join [player]`
2023-12-16 23:45:16 +00:00
furo
67c101b43d
Add /join [player]
.
2023-12-16 17:33:10 +01:00
Dennis Felsing
5aa4b58d4e
Merge pull request #7661 from archimede67/editor-qol-quads
...
Editor: Add QoL features for quads
2023-12-16 11:09:16 +00:00
Dennis Felsing
2993d3ad11
Fix style
2023-12-16 11:10:02 +01:00
Egehan
5da5eb79bb
Add ui setting cl_same_clan_color
2023-12-16 11:06:29 +03:00
archimede67
5dbd5a1f49
Added quad alignment/snapping to other quads/points
2023-12-16 01:29:09 +01:00
archimede67
a41da8182b
Preserve and show axis when dragging quad points while holding Shift
2023-12-16 00:29:10 +01:00
Dennis Felsing
5b5253c4ec
Merge pull request #7659 from furo321/render-spectated-last
...
Render the tee being spectated after everyone else.
2023-12-15 22:09:49 +00:00
furo
25ffc421cc
Render the tee being spectated after everyone else.
2023-12-15 21:34:33 +01:00
Robert Müller
184ada3c95
Fix various lineinput issues/regressions
...
Fix Ctrl+C not working to copy text in console when the command input already contains text, as the changed flag was never reset properly.
Fix scroll position of UI editboxes not being updated when moving cursor without changing text.
Fix lineinput selection change being detected as content change, causing the editor modified state to be set incorrectly.
Fix cursor blinking not being disabled correctly after changing text without changing cursor position.
2023-12-15 17:49:06 +01:00
heinrich5991
1feee077ca
Returning false
commits you to setting a message
2023-12-15 13:00:43 +01:00
Dennis Felsing
12ed9f8d6b
Merge pull request #7651 from furo321/fix-teamjoin-error
...
Don't broadcast error if `CanJoinTeam` returned true
2023-12-14 23:48:20 +00:00
Dennis Felsing
514e528be7
Merge pull request #7649 from furo321/chat-command-netmsg
...
Add `Sv_CommandInfo` netmsg for autocompletion of chat commands.
2023-12-14 23:46:52 +00:00
Dennis Felsing
a333d723e5
Merge pull request #7653 from Robyt3/Clang-Tidy-Cleanup
...
Fix more clang-tidy errors: mark functions as `const` when possible
2023-12-14 23:46:19 +00:00
Dennis Felsing
7d37db6d6e
Version 17.4.1
2023-12-15 00:58:09 +01:00
Robert Müller
f50eeab690
Fix performance-inefficient-vector-operation
2023-12-14 23:38:05 +01:00
Robert Müller
bab382f4cc
Fix modernize-use-emplace
2023-12-14 23:38:05 +01:00
Robert Müller
aacd37b412
Fix readability-static-accessed-through-instance
2023-12-14 23:38:05 +01:00
Robert Müller
6a12e209b6
Fix readability-make-member-function-const
2023-12-14 23:38:03 +01:00
Corantin H
af77ebac54
Added console search function
2023-12-14 21:58:27 +01:00
furo
035e7a1068
Add Sv_CommandInfo
netmsg for autocompletion of chat commands.
2023-12-14 19:01:35 +01:00
furo
a440e0e917
Don't broadcast error if CanJoinTeam
returned true
2023-12-14 16:19:31 +01:00
heinrich5991
efe593c7b0
Merge pull request #7602 from ChillerDragon/pr_create_switcherscontroller
...
Move switcher snapping code to own method
2023-12-13 22:10:49 +00:00
Robert Müller
68508e1b81
Add small margin to callvote label
2023-12-13 17:47:10 +01:00
ChillerDragon
1723554288
Move switcher snapping code to own method
2023-12-13 17:29:02 +01:00
heinrich5991
b458890f08
Merge pull request #7639 from ChillerDragon/pr_canjoinmsg
...
Move chat message into CanJoinTeam()
2023-12-13 15:27:25 +00:00