ddnet / ddnet

DDraceNetwork, a free cooperative platformer game
https://ddnet.org
Other
507 stars 383 forks source link

Add enum for whisper receive and send #8306

Closed ChillerDragon closed 1 week ago

ChillerDragon commented 1 week ago

The client and server code use magic numbers 2 and 3 to differentiate between whisper send and receive. Create and use some enum for that.

https://github.com/ddnet/ddnet/blob/2f22447d44535c50cc5bdd538bd7741dad0f6787/src/game/client/components/chat.cpp#L818

ChillerDragon commented 1 week ago

assign self