Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2017-05-22 00:00:00Z and 2017-05-23 00:00:00Z
Anyone know how to calculate X for this god damn emoji? Tried already so many combinations using previous character's info, advancing, offsets, cursor.m_X :/ I am running out of ideas :/
I am rendering text on left, then taking Cursor.m_X, can't use it directly as it seems to be somewhere between last 2 letters so i am adding some magic numbers to it, rendering emoji quad with calculated X, and then using old Cursor.m_X += emoji width and rendering rest of text
i think i found a "bug"
somebody wrote to me "Welfilein Welf [...]"
chatmessage was NOT highlighted because fo the Welfilein but he literally mentioned my name (okay i hope he didnt use an i instead of the L in Welf)(edited)
its obviously not a bug, character are being compared using their acii codes. If someone is trolling you using similarily looking characters then It will be hard to get rid of this
its weird cause if I change name from Welf to Welf with other character that looks the same my name goes to (1)Welf but when I massage Welf with the weird character he gets no notification
To make it working correctly you will need to take each word from the chat message, convert it using confusables and then check string after conversion matches some player name
21:49
so it will be quite slow I think
21:50
find_str is much faster in that way and I think that was the main reason to make it working now
Trying to understand trolls: "I will change the some letter in the Welf name so that it visually looks like Welf. I'm laughing when message to Welf was not highlighted"