heinrich5991
0c66786fb6
Merge pull request #8349 from Robyt3/Mapitem-Image-Cleanup
...
Remove unused `CImageInfo::ImageFormatFromInt`
2024-05-12 01:16:45 +00:00
Patiga
4f62980541
Fix off-by-one error in map_create_pixelart
2024-05-11 19:53:56 +02:00
Robert Müller
b8cb67379c
Fix height of controller settings with exactly 1 controller
...
The controller name is also shown if there is only exactly one controller connected, but the height was not increased for the additional row.
2024-05-11 15:10:15 +02:00
Robert Müller
c6c8f2eab6
Fix demo seekbar being activated by held button press
...
The seekbar is immediately activated if the mouse button is held while moving the mouse over the seekbar, which is inconsistent with the general `DoButtonLogic` behavior. This is problematic on Android, where the first mouse button is always pressed while the mouse is being moved, causing the seekbar to steal focus immediately when hovered.
2024-05-11 12:29:33 +02:00
Robert Müller
7d0774a00d
Fix demo seekbar tooltip not shown while seekbar is active
...
The tooltip was not shown if the seekbar is the active item, i.e. when the first mouse button is held down and the seekbar is currently updating the demo player.
2024-05-11 12:26:46 +02:00
ChillerDragon
4f4f32615a
Keep respawned players in multi view list on pvp servers
...
Assume every server that does not have ddnet or race in its gametype to be a pvp server.
This allows spectators to follow multiple players during a fng/ctf/gctf/ictf round.
Related issue #7509
2024-05-11 08:52:42 +08:00
Robert Müller
74e2e04b7d
Remove unused CImageInfo::ImageFormatFromInt
...
Since the image format is not parsed from maps anymore, this function is unnecessary.
2024-05-10 21:44:49 +02:00
Robert Müller
d34fc96049
Merge pull request #8348 from furo321/map_create_pixelart
...
Fix issues with `map_create_pixelart`
2024-05-10 18:06:49 +00:00
furo
3491624184
Fix crash when not specifying optimize
, centralize
or invalid amount of arguments
2024-05-10 19:05:58 +02:00
Jupeyy
15afc50865
Don't recreate DescriptorSetLayouts if swapchain image count changes
2024-05-10 18:48:09 +02:00
Jupeyy
128302d726
Cleanup Vulkan now takes SwapchainCount
as explicit parameter.
...
This fixes a crash if the swapchain count changed.
fixes #8328
2024-05-10 18:48:09 +02:00
Jupeyy
2655627a4b
Rename m_CurFrames
to make clear it's about the sync objects.
...
Use one more sync object than there are inflight frames.
Remove unused memory sync objects.
2024-05-10 18:48:05 +02:00
furo
7cd9d8bbb4
Prevent using map_create_pixelart
with the same input and output path
2024-05-10 18:42:55 +02:00
furo
39dd6ea499
Fix wrong filename used in dbg_msg
2024-05-10 18:20:33 +02:00
furo
d5b06a4482
Use IO_MAX_PATH_LENGTH
instead of 64
2024-05-10 18:18:24 +02:00
heinrich5991
500b9c943b
Merge pull request #8346 from furo321/sqlite-timeout
...
Set sqlite3 `.timeout` in `integration_test.sh`
2024-05-10 16:09:01 +00:00
furo
6864fc171b
Include map_create_pixelart
in release
2024-05-10 18:07:20 +02:00
furo
b24f14d4f3
Set sqlite3 .timeout
in integration_test.sh
2024-05-10 17:48:44 +02:00
Dennis Felsing
02a4e58972
Merge pull request #8343 from Robyt3/Client-Chat-History-Size-Fix
...
Fix size of chat history entry allocation
2024-05-10 12:20:44 +00:00
Robert Müller
c80592063a
Fix size of chat history entry allocation
...
The `-1` in the size calculation for the ringbuffer allocation of chat history entries was incorrect, so the entries potentially didn't fit the zero terminator. Because `mem_copy` was used, the string was also not zero terminated explicitly.
2024-05-10 10:53:23 +02:00
ChillerDragon
257a0bacc8
Store all tele types in vectors
2024-05-10 08:59:19 +08:00
heinrich5991
60dbd73ee3
Merge pull request #8333 from BlaiZephyr/change-time-timestamp-type
...
Change type from int to int64_t
2024-05-09 08:01:17 +00:00
heinrich5991
c0a6bb9c88
Merge pull request #8336 from gerdoe-jr/set_view_relative
...
Add `set_view_relative` (Closes #8335 )
2024-05-09 07:52:04 +00:00
meloƞ
aec0dc9e0e
Change type from int to int64_t
2024-05-09 08:42:19 +02:00
gerdoe-jr
4f0d8a5a1f
add set_view_relative
2024-05-09 06:28:55 +03:00
ChillerDragon
6f75087d9f
Refactor goto_tele
...
Fixes a bug of some teleporters being skipped.
Improves performance by only iterating all teleporters instead of every tile in the map.
2024-05-09 11:20:59 +08:00
heinrich5991
3887eea18d
Merge pull request #8332 from heinrich5991/pr_ddnet_fix_token_7
...
Fix 0.7 tokens after #8322
2024-05-08 13:12:32 +00:00
heinrich5991
c211e874aa
Fix 0.7 tokens after #8322
...
They're also read as big-endian integers now.
Thanks to @ChillerDragon for noticing.
Fixes #8330 .
2024-05-08 14:17:02 +02:00
Dennis Felsing
f214c1101b
Merge pull request #8326 from heinrich5991/pr_ddnet_no_map_image_rgb
...
Remove RGB images from the map file format
2024-05-08 04:56:19 +00:00
Dennis Felsing
587b545ab1
Merge pull request #8327 from heinrich5991/pr_ddnet_revert_initialize_variables
...
Revert "Initialize all ghost item member (Closed #8297 )"
2024-05-08 04:56:16 +00:00
heinrich5991
8a64feabc3
Remove RGB images from the map file format
...
Cherry-picked from https://github.com/teeworlds/teeworlds/pull/2822 .
CC https://github.com/teeworlds/teeworlds/issues/2812
CC https://github.com/teeworlds/teeworlds/issues/962
Since DDNet never saved these kinds of images, this should cause no
issues.
2024-05-07 14:31:06 +02:00
heinrich5991
3a48b8e6cf
Revert "Initialize all ghost item member ( Closed #8297 )"
...
This reverts commit f319ed239a
.
Initializing these variables with junk data doesn't seem to be an
improvement over not initializing them. It hides potential Valgrind
warnings about data accesses to uninitialized memory though.
f319ed239a (r1590801501)
2024-05-07 14:25:29 +02:00
Dennis Felsing
df30321f52
Merge pull request #8324 from ewancg/chat-practice
...
Add chat commands for toggling weapons in practice mode
2024-05-07 05:42:38 +00:00
Dennis Felsing
edff7841e8
Merge pull request #8320 from ChillerDragon/pr_tidy_more
...
Enforce more styling with clang tidy
2024-05-07 04:45:34 +00:00
Dennis Felsing
ae2c9e2999
Merge pull request #8323 from Robyt3/Client-Particles-Smoke-Nudge
...
Fix smoke particles sometimes being stuck inside solid tiles
2024-05-07 01:21:37 +00:00
Ewan Green
87cab3ebd9
change GetPracticeCharacter() to not be static, fix solo checks
2024-05-06 15:06:42 -06:00
Ewan Green
ba5b39d294
change forgotten functions to use practice check
2024-05-06 14:08:51 -06:00
Ewan Green
bf78d7fb48
cleanup
2024-05-06 14:03:17 -06:00
Ewan Green
d6449872a4
add weapon chat commands for practice mode
2024-05-06 13:57:16 -06:00
Robert Müller
910001a772
Merge pull request #8322 from heinrich5991/pr_ddnet_endian_token
...
Use network tokens in big-endian byte order consistently
2024-05-06 19:35:55 +00:00
heinrich5991
36712db0f1
Use network tokens in big-endian byte order consistently
...
Previously, it was handled inconsistently on big-endian machines and
caused connection failures.
2024-05-06 20:33:17 +02:00
Robert Müller
6cbc85f229
Fix smoke particles sometimes being stuck inside solid tiles
...
Nudge the initial position for explosions' smoke particles slightly towards the edge of the closest non-solid tile, if it would otherwise be inside a solid tile, so the smoke particles do not get stuck inside solid tiles on explosion events happening at the edges of tiles but slightly inside them. The physical position of the explosion event is unchanged, so this does not affect physics. The explosion sprite is still rendered at the physical position of the explosion, to preserve the apprearance.
2024-05-06 16:03:36 +02:00
Robert Müller
d4e3f6fc01
Merge pull request #8316 from ChillerDragon/pr_use_sendchat
...
Use SendChat() in DbgStress
2024-05-06 08:52:47 +00:00
Robert Müller
f9cb924e20
Merge pull request #8317 from ChillerDragon/pr_static_member_console
...
Don't access static ConCommandStatus with a member
2024-05-06 08:48:32 +00:00
ChillerDragon
b422b0e927
Enforce more styling with clang tidy
2024-05-06 15:32:14 +08:00
ChillerDragon
3c606dd1e4
Don't access static ConCommandStatus with a member
...
Fixes this clang-tidy 19 warning
```
/home/chiller/Desktop/git/ddnet/src/engine/shared/console.cpp:739:2: error: static member accessed through instance [readability-static-accessed-through-instance,-warnings-as-errors]
739 | pConsole->ConCommandStatus(&Result, pConsole);
| ^~~~~~~~~~
| CConsole::
```
2024-05-06 11:48:47 +08:00
ChillerDragon
28f3ac3e87
Use SendChat() in DbgStress
2024-05-06 11:09:18 +08:00
Dennis Felsing
c727b87601
Merge pull request #8315 from ChillerDragon/pr_chat_cleanup
...
Rename chat `Say()` to `SendChat()`
2024-05-06 02:06:14 +00:00
ChillerDragon
44d065888f
Rename CChat::SayChat
to CChat::SendChatQueued
...
Also replace one code snippet with a call to SendChatQueued
2024-05-06 09:49:35 +08:00
ChillerDragon
33baeb8f28
Rename CChat::Say
to CChat::SendChat
...
Follows the convention set by the other methods that send network packets.
2024-05-06 09:23:19 +08:00