mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-21 18:14:19 +00:00
f79412c59c
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 |
||
---|---|---|
.. | ||
components | ||
prediction | ||
animstate.cpp | ||
animstate.h | ||
component.cpp | ||
component.h | ||
gameclient.cpp | ||
gameclient.h | ||
laser_data.cpp | ||
laser_data.h | ||
lineinput.cpp | ||
lineinput.h | ||
projectile_data.cpp | ||
projectile_data.h | ||
race.cpp | ||
race.h | ||
render.cpp | ||
render.h | ||
render_map.cpp | ||
skin.h | ||
ui.cpp | ||
ui.h | ||
ui_rect.cpp | ||
ui_rect.h | ||
ui_scrollregion.cpp | ||
ui_scrollregion.h |