Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2025-03-11 00:00 and 2025-03-12 00:00
GitHub
BOT
2025-03-11 13:06
ChillerDragon
[teeworlds/teeworlds] Issue opened: #3276 Add asserts to SendGameMsg to avoid calling it with the wrong message id
https://github.com/teeworlds/teeworlds/blob/c56fa9e6a20cfc9d7d16502e18c7d7633acdf492/src/game/server/gamecontext.cpp#L309-L332
The game message ids are tied to their amount of arguments. So the method should fail loud if an invalid message id for this amount of arguments is passed in.
Exported 1 message(s)
Timezone: UTC+0