Fix dynamic media race condition #2

Open
appgurueu wants to merge 1 commits from appgurueu/xmaps:master into master

1 Commits

Author SHA1 Message Date
Lars Mueller df5bd3c4ec Fix dynamic media race condition
Wait for *all* players to receive the texture before using it.
Previously this would wait for *any* player to receive the texture.
This works fine in singleplayer (or on pre-5.5,
where dynamic_add_media would block until all players have received the texture),
but it may fail otherwise:
Either entity textures won't be available in time,
or, even worse, the HUD texture is unavailable.
Both produce an error in chat for clients.
2023-04-08 20:10:43 +02:00