00:02 <+bridge> [ddnet] this kind of code isn't complicated, nor is it ugly imho, but it's still the kind of code you would write as a library writer. But if you needed to use bitmasks, and don't feel comfortable writing a macro that expands on a lot of overloaded symbols (like shown in that blog), then you should use something like 00:02 <+bridge> [ddnet] ``` 00:02 <+bridge> [ddnet] namespace FeatureFlag { 00:02 <+bridge> [ddnet] enum Flags : uint32_t { 00:02 <+bridge> [ddnet] debugAllocator = 0x1, 00:02 <+bridge> [ddnet] debugLogging = 0x2, 00:02 <+bridge> [ddnet] }; 00:02 <+bridge> [ddnet] }; 00:02 <+bridge> [ddnet] ``` 00:02 <+bridge> [ddnet] So that you can do `FeatureFlag::debugAllocator`, otherwise if you don't rely on bitmasks you should prefer to use `static_cast`, or some equivalent. Like I use 00:02 <+bridge> [ddnet] 00:02 <+bridge> [ddnet] ```c++ 00:02 <+bridge> [ddnet] template constexpr auto Idx(EnumType const & v) { 00:02 <+bridge> [ddnet] return static_cast::type>(v); 00:02 <+bridge> [ddnet] } 00:02 <+bridge> [ddnet] 00:02 <+bridge> [ddnet] template 00:02 <+bridge> [ddnet] constexpr typename std::underlying_type::type & Idx(EnumType & v) { 00:02 <+bridge> [ddnet] return reinterpret_cast::type &>(v); 00:02 <+bridge> [ddnet] } 00:02 <+bridge> [ddnet] ``` 12:14 <+ChillerDragon> @heinrich5991 cool thanks for clearing up the dummy terms always confused me :) 12:19 <+ChillerDragon> would be cool if function signature changes could be mentioned somewhere maybe in the commit message https://github.com/ddnet/ddnet/commit/49bc150afdcaef5659057b44f3f5d5a74304dc40#diff-ae107925aba4800486ad13491c7e1e73975880fa6b57ca885f4110e5cfe1aa5eL176-R185 13:33 <+ChillerDragon> is the backend for https://update6.ddnet.tw/ public? I would like to enable auto updates for my ddnet fork 13:34 <+ChillerDragon> or is it just running update.sh and then serving the files via nginx? 13:34 <+bridge> [ddnet] This commit allows to easily have more than one dummy. 13:35 <+ChillerDragon> @Wohoo go add 64 dummys to ddnet then pls 14:36 <+bridge> [ddnet] ChillerDragon: https://github.com/ddnet/ddnet-scripts/tree/master/update 14:37 <+bridge> [ddnet] but yes, the rest is just nginx delivering static files 14:37 <+bridge> [ddnet] @deen Is this correct? 14:37 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/934441555270463589/code.png 14:37 <+bridge> [ddnet] depends on what you want to do 14:37 <+bridge> [ddnet] you are silencing the join message I guess 14:38 <+bridge> [ddnet] bool arguments it's overriden in any case here 14:38 <+bridge> [ddnet] when joining spectators 14:39 <+bridge> [ddnet] if(DoChatMsg) is never executed 14:40 <+bridge> [ddnet] `if(DoChatMsg)` is never executed 14:40 <+bridge> [ddnet] interesting, i thought ddnet did this intentionally 14:40 <+bridge> [ddnet] silencing the join msg 14:42 <+bridge> [ddnet] correct to not spam team change, actually message is sent only to team member. 14:42 <+bridge> [ddnet] These lines need to be wiped 14:44 <+bridge> [ddnet] well i looked in the git blame 14:44 <+bridge> [ddnet] it doesnt look like this was explictly mentioned 14:46 <+bridge> [ddnet] ok but it was muted before 14:46 <+bridge> [ddnet] so i guess its fine 14:59 <+bridge> [ddnet] binary search on github web interface it's a pain :bluestripe: 14:59 <+bridge> [ddnet] https://github.com/ddnet/ddnet/commit/f83a9be61092098b3b28adeb94438113e272da74#diff-4b7e0de54578478dbb720a146e73785264c55592e8ba622a241e7eb0af5e2975 15:00 <+bridge> [ddnet] Who cares where it comes from? Nobody. 15:00 <+bridge> [ddnet] I had to find it? Yes. 15:01 <+bridge> [ddnet] i think its quite ok with blaming 15:01 <+bridge> [ddnet] you'll find the file where it was and can look at the history 15:02 <+bridge> [ddnet] I've just just done, it's on the link above 15:02 <+bridge> [ddnet] yes i did it too 15:03 <+bridge> [ddnet] but since the pr doesnt mention why its done i assume its bcs of some bot client reading it or smth 15:11 <+bridge> [ddnet] @Wohoo\: whats your github name btw? 15:13 <+bridge> [ddnet] It's a brand new account. 15:13 <+bridge> [ddnet] I had some ddnet commit on an old account. 15:13 <+bridge> [ddnet] There is nothing to see 🤣 15:13 <+bridge> [ddnet] https://github.com/GiuCcc 15:14 <+bridge> [ddnet] ah nice, are you from china, russia? 15:17 <+bridge> [ddnet] Italy 🇮🇹, go PM 15:18 <+bridge> [ddnet] This chat is only for developer related stuff or nuclear related stuff 🤣🤣🤣 15:18 <+bridge> [ddnet] yeah, you are a developer 15:18 <+bridge> [ddnet] so its fine 15:18 <+bridge> [ddnet] XD 15:20 <+bridge> [ddnet] ok last question. 15:20 <+bridge> [ddnet] Do you come from the steam release? 15:20 <+bridge> [ddnet] It's just interesting to see how many new contributors come because of the new growth in community 15:25 <+bridge> [ddnet] I joined teeworld before ddnet. 15:25 <+bridge> [ddnet] I found this message, but i've never used discord before. 15:25 <+bridge> [ddnet] @fokkonaut wrote about me here 15:25 <+bridge> [ddnet] 15:25 <+bridge> [ddnet] https://discord.com/channels/252358080522747904/342454474117218334/467107393260748810 15:26 <+bridge> [ddnet] xdxd 15:26 <+bridge> [ddnet] That my only other commit to ddnet :kek: 16:19 <+ChillerDragon> @deen ye cool then i understood it correctly. But sounds like work to maintain that especially with all the dll's and shit 16:21 <+bridge> [ddnet] who is `<@!782477357834567680>` and why are u on quakenet 16:22 <+bridge> [ddnet] for me it shows some weird deen account xD 16:23 <+bridge> [ddnet] with a strawhat xD 16:30 <+ChillerDragon> ?xd 16:31 <+bridge> [ddnet] haha \:D 16:32 <+bridge> [ddnet] yea irc bridge seems to be a bit cursed 18:09 <+bridge> [ddnet] A velocity gauge that you could toggle would be nice to have. Without having to use ctrl shift d 19:47 <+bridge> [ddnet] chillerdragon implement cl_show_speed to ddnet 19:53 <+bridge> [ddnet] https://discord.com/channels/252358080522747904/293493549758939136/927774860443275325 or just generally what i said there 19:54 <+bridge> [ddnet] yes that feature would be extremely useful 20:39 <+ChillerDragon> @Souly do you even use cl_show_speed in chillerbot? i doubt even corneum uses it 20:40 <+bridge> [ddnet] i do sometimes 20:40 <+ChillerDragon> weirdo 20:40 <+bridge> [ddnet] its cool to compare different strats for speedrun 20:40 <+bridge> [ddnet] to check whats faster 20:40 <+ChillerDragon> sure i can pr against ddnet if u want but to me it feels like bloat 20:40 <+bridge> [ddnet] gamer client has a nice speed meter 20:41 <+ChillerDragon> so u want me to work on the looks first? 20:41 <+ChillerDragon> how is it supposed to look? 20:43 <+bridge> [ddnet] would be nice to have something that would show whether your speed is getting highier or lower like gamer has 20:43 <+bridge> [ddnet] with those green/red colors 20:43 <+ChillerDragon> ok