Dennis Felsing
c15dfb8bd9
Merge pull request #7290 from ChillerDragon/pr_quote_team_name
...
Teeworlds style name quoting for team joins
2023-10-03 11:55:37 +00:00
Dennis Felsing
8839698d41
Merge pull request #7143 from Marmare314/refactor-a2
...
extract editor layers into seperate headers
2023-10-03 11:54:10 +00:00
Robert Müller
b7e1e61988
Remove redundant argument of Dilate
function
...
The pixel size (bytes per pixel) always has to be 4 for the `Dilate` function to work correctly. This is already checked before calling the function, so the redundant argument which is always `4` can be removed.
2023-10-03 13:52:37 +02:00
ChillerDragon
42e5f27ee9
Teeworlds style name quoting for team joins
2023-10-03 13:16:27 +02:00
marmare314
227d074254
implement project-onto operation for envelopes
2023-10-02 23:45:08 +02:00
marmare314
ac6f6bd28e
take pointer to editor in CLayer
constructor
2023-10-02 23:15:31 +02:00
marmare314
d400687876
extract editor layers into seperate headers
2023-10-02 23:07:08 +02:00
Dennis Felsing
78b70ebcf8
Merge pull request #7282 from furo321/tele-cursor
...
Teleport the player to their cursor if they aren't in pause
2023-10-02 16:12:00 +00:00
Dennis Felsing
161a256d7f
Merge pull request #7284 from Robyt3/Client-Skin-Assertion-Refactoring
...
Fix crashes when rendering tees after skins are updated
2023-10-02 16:10:53 +00:00
Robert Müller
589b047ee4
Track team killmessage victims separately, ensure initialization
...
Store client IDs of all victims for team killmessages instead of storing only the first victim ID, so the render info for all victims can be properly restored when skins are updated.
Ensure all killmessages are properly initialized.
2023-10-02 15:39:12 +02:00
Robert Müller
96ef1fbc88
Fix client render info not being updated when skin not found
...
The skin info was always updated, but the render info was only being updated for skins that can be found. Now the render info is also always updated.
2023-10-02 15:37:49 +02:00
Robert Müller
6094061a81
Add CTeeRenderInfo::Reset
, ensure everything is initialized
2023-10-02 15:37:30 +02:00
Robert Müller
e41b3a9b57
Use bool
instead of int
for m_GotAirJump
2023-10-02 15:37:26 +02:00
Robert Müller
1dedde542a
Refactor ghost skin updating, ensure current ghost is updated
...
Rename function for consistency.
2023-10-02 15:35:12 +02:00
Robert Müller
9029fb9593
Remove CTeeRenderInfo
member variables of CPlayers
...
The variables can be local variables in `CPlayers::OnRender`.
2023-10-02 15:34:39 +02:00
furo
7e045d4f32
Teleport the player to their cursor if no argument is specified.
...
Check for `NumArguments()`
2023-10-02 13:26:34 +02:00
Robert Müller
dab88177dd
Fix images using indexed color palette not being loadable
...
The wrong color channel count was being used for loading images that use an indexed color palette, which was causing the loading to fail with the error "bytes in row incorrect". Now the correct color channel count is retrieved using the libpng API.
Closes #7157 .
2023-10-02 12:21:20 +02:00
Dennis Felsing
fe77f63a58
Merge pull request #7278 from Robyt3/Menus-Images-Scan-Refactoring
...
Refactor menu image scan
2023-10-01 22:22:24 +00:00
Dennis Felsing
887522ea5b
Merge pull request #7279 from Robyt3/Menus-Performance
...
Improve performance of menus checker background, improve server browser performance
2023-10-01 22:21:58 +00:00
Dennis Felsing
624f4aef21
Merge pull request #7280 from furo321/move-lasttelepos
...
Don't reset `/lasttp` position on death
2023-10-01 22:21:34 +00:00
Dennis Felsing
879a88933c
Merge pull request #7277 from furo321/send-ping-menu
...
Send the player's latency if a menu is open
2023-10-01 22:19:50 +00:00
Robert Müller
fa07f64982
Improve performance of menus checker background, refactoring
...
Avoid duplicate `SetColor` calls in loop.
Avoid `QuadsDrawTL` calls by batching quads together before drawing.
Use `SetColor` instead of `SetColorVertex`.
2023-10-01 21:01:10 +02:00
Robert Müller
b1d90aaaf2
Store number of filtered players when filtering
...
Only update total number of filtered players when the filter is updated instead of calculating it every frame.
2023-10-01 20:53:29 +02:00
Robert Müller
fe27752d40
Refactor menu image scan
...
Remove unnecessary check for duplicate menu images. Listing directories with the storage now prevents duplicates, so this additional check is not needed anymore.
Ensure menu images are in RGBA format.
Ensure menu image names are not truncated.
Minor code format improvements.
2023-10-01 19:39:04 +02:00
furo
6dd43fb086
Don't reset LastTelePos
on death
2023-10-01 18:34:07 +02:00
furo
0661eafb49
Send the player's latency if a menu is open
2023-10-01 17:32:51 +02:00
Robert Müller
3ce669df13
Merge pull request #7276 from furo321/autoexec-unused
...
Remove unused commands from `autoexec_server.cfg`
2023-10-01 10:08:25 +00:00
Robert Müller
7743981e02
Merge pull request #7273 from Marmare314/quad-selection-iv
...
revert quad selection correctly fixes #7248
2023-10-01 09:51:24 +00:00
furo
5512049946
Remove unused commands from autoexec cfg
2023-10-01 11:42:58 +02:00
heinrich5991
2dd7f1d119
Merge pull request #7274 from furo321/dummy-directions
...
Use `m_aInputData` for dummy in `cl_show_direction`
2023-09-30 23:53:13 +00:00
furo
f55086f2bf
Use m_aInputData
for dummy in cl_show_direction
2023-10-01 01:14:35 +02:00
marmare314
a7748ba87e
revert quad selection correctly fixes #7248
2023-09-30 23:43:21 +02:00
Dennis Felsing
e0d906d9e1
Merge pull request #7272 from furo321/afk-optional2
...
Don't run `GET_INT` on afk attribute in `ProcessServerInfo`
2023-09-30 20:43:37 +00:00
furo
a3064ae105
Don't run GET_INT
on afk attribute in ProcessServerInfo
2023-09-30 20:51:20 +02:00
Dennis Felsing
c8401aa38f
Merge pull request #7271 from furo321/afk-optional
...
Make IsAfk attribute optional
2023-09-30 18:22:09 +00:00
Dennis Felsing
49a5a591d7
Merge pull request #7269 from Robyt3/Serverbrowser-Favorite-Resort-Fix
...
Fix large FPS drop rendering server details of favorite server
2023-09-30 18:15:50 +00:00
furo
3b2389daa4
Make IsAfk attribute optional
2023-09-30 19:56:01 +02:00
Robert Müller
d55822bc4f
Merge pull request #7270 from furo321/editor-export-sound
...
Add export button to sounds
2023-09-30 16:10:20 +00:00
furo
f07e7fef76
Add export button to sounds
2023-09-30 17:28:47 +02:00
Robert Müller
0025b6c1f3
Fix large FPS drop rendering server details of favorite server
...
The server list was being resorted every frame when the server details of a favorite server were being rendered, which was causing the FPS to drop by a factor of 5.
2023-09-30 15:48:10 +02:00
Dennis Felsing
c731d5345f
Merge pull request #7087 from ChillerDragon/pr_streamer_mode
...
Add streamer mode to avoid leaks
2023-09-30 13:34:32 +00:00
ChillerDragon
ca8d9d4f18
Add streamer mode to avoid leaks
2023-09-30 15:10:44 +02:00
Dennis Felsing
18d2f1a1ff
Merge pull request #7268 from Robyt3/Serverbrowser-Refactoring-Various
...
Various refactoring of the engine server browser, remove game includes from engine, minor performance improvement
2023-09-30 11:56:14 +00:00
Robert Müller
cf35594fa4
Extract UpdateServerFriends
function, cache friends on server
...
Calculate the number of friends on each server when refreshing the friend state of the server info instead of every time the server entry is rendered.
2023-09-30 13:32:36 +02:00
Robert Müller
7e8442d394
Move and rename UpdateFilteredPlayers
function, mark as const
2023-09-30 13:29:28 +02:00
Robert Müller
28d4451057
Add local variable Info
to reduce duplicate code
2023-09-30 13:29:28 +02:00
Robert Müller
034962ae24
Add enum ERankState
to replace magic numbers
2023-09-30 13:29:28 +02:00
Robert Müller
dcff6d92f0
Add name for enum EClientScoreKind
2023-09-30 13:29:28 +02:00
Robert Müller
721a55c603
Remove game menus includes in engine
...
Use config manager to reset `ui_page` to the default, instead of using `CMenus::PAGE_DDNET` directly (which is the default).
Check current type of serverbrowser instead of checking the current `ui_page` against `CMenus::PAGE_DDNET` and `CMenus::PAGE_KOG`.
2023-09-30 13:29:28 +02:00
Robert Müller
6753e37772
Move function definitions to remove and organize includes
2023-09-30 13:29:27 +02:00