ddnet/src/game/client
bors[bot] f79412c59c
Merge #6244 #6245 #6246
6244: Minor base refactoring r=def- a=Robyt3


## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


6245: Add ingame and browser buttons to copy server info to clipboard r=def- a=Robyt3

Add "Copy info" buttons to server browser and ingame menu to copy the server info of the selected/current server to the clipboard.

The margins around the server browser details are improved.

Closes #5440.

Screenshots:
- browser (old):
![browser old](https://user-images.githubusercontent.com/23437060/211093742-b877f1e2-6be0-4827-b1c8-0fd209f697aa.png)
- browser (new):
![browser new](https://user-images.githubusercontent.com/23437060/211093750-f0b3e2c2-8f95-42e1-94bf-ec8b9da4132f.png)
- ingame: 
![ingame](https://user-images.githubusercontent.com/23437060/211093736-04569b8e-96d6-40ab-a37e-8c581f2d8aea.png)


## Checklist

- [X] Tested the change ingame
- [X] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


6246: Remove dead freeze code r=def- a=Zwelf

Remove unused `m_FreezeTime == -1` state

Reduces code complexity. Both `g_Config.m_SvFreezeDelay`[[1]] and `GetSwitchDelay(int Index)`[[2]] can only return non-negative numbers, therefore this is currently dead code and can be removed.

The last time it was possible to pass a negative number was removed in 561ce64666 (diff-29ffe32916052e1066eed938021aadfeb29f855d7c63d9c1ca3350aceffb79f3L1624)

[1]: c8ea372d98/src/engine/shared/config_variables.h (L213)
[2]: c8ea372d98/src/game/mapitems.h (L467)

## Checklist

- [ ] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
Co-authored-by: Zwelf <zwelf@strct.cc>
2023-01-06 22:56:49 +00:00
..
components Add ingame and browser buttons to copy server info to clipboard 2023-01-06 21:23:33 +01:00
prediction Remove unused m_FreezeTime == -1 state 2023-01-06 23:09:01 +01:00
animstate.cpp Organize game-client includes 2022-05-29 21:24:43 +02:00
animstate.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
component.cpp Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
component.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
gameclient.cpp Refactor team state unpacking 2023-01-03 23:55:26 +01:00
gameclient.h Restart client race demo when round is restarted 2023-01-03 23:38:37 +01:00
laser_data.cpp Add DDNetLaser to have more info about a laser shot 2022-09-15 01:01:32 +02:00
laser_data.h Add DDNetLaser to have more info about a laser shot 2022-09-15 01:01:32 +02:00
lineinput.cpp Port some code to str_copy() template 2022-07-09 19:40:58 +03:00
lineinput.h m_DisplayStr -> m_aDisplayStr 2022-03-31 12:52:24 +02:00
projectile_data.cpp Constify snap more (inspired by upstream) 2022-10-09 15:12:12 +02:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Move index check before usage, use std::size 2022-11-29 23:32:31 +01:00
race.h Organize game-client includes 2022-05-29 21:24:43 +02:00
render.cpp Fix misspellings 2022-10-25 13:51:56 -03:00
render.h Running and AFK anim. states 2022-09-16 12:30:05 +02:00
render_map.cpp Make tileflag names consistent with automappers 2022-12-19 18:39:36 +01:00
skin.h Get away from vector for skins 2022-10-12 22:32:36 +02:00
ui.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
ui.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
ui_rect.cpp Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_rect.h Move CRenderTools::DrawUIRect/4 to CUIRect::Draw/4 2022-08-12 19:37:08 +02:00
ui_scrollregion.cpp Mark parameters as const when possible 2022-11-29 23:32:31 +01:00
ui_scrollregion.h Mark parameters as const when possible 2022-11-29 23:32:31 +01:00