SnowyMouse / chimera

The update to Halo PC that never was
https://chimera.opencarnage.net
GNU General Public License v3.0
137 stars 26 forks source link

Custom Chat will render in a weird way when certain characters are in player names. #6

Closed ShellyHerself closed 4 years ago

ShellyHerself commented 4 years ago

When some characters are in player names the text will move back to the beginning of the line, causing text to be overlapped.

I assume this has something to do with the converting of the text from utf-16 to utf-8 having some overlap for special characters.

I'm thinking the easiest solution would be to set a range for allowed characters and prune everything outside of that.

SnowyMouse commented 4 years ago

I fixed the issue in https://github.com/Kavawuvi/chimera/commit/6ef0f68a05e1bb78e8ade443f102ca1f2fedec45. I think at least. It was due to a sign vs unsigned comparison. image