Use the basic character on the title font if it's missing

This commit is contained in:
MysterD 2023-04-02 19:11:51 -07:00
parent f593a263aa
commit cdd077c9f8
2 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,11 @@ static void djui_font_title_render_char(char* c) {
if (*c == ' ') { return; }
u32 index = djui_unicode_get_sprite_index(c);
if ((u8)*c < '!' || (u8)*c > '~' + 1) { index = djui_unicode_get_sprite_index("?"); }
if ((u8)*c < '!' || (u8)*c > '~' + 1) {
char tmp[2] = { 0 };
tmp[0] = djui_unicode_get_base_char(c);
index = djui_unicode_get_sprite_index(tmp);
}
u32 tx = index % 16;
u32 ty = index / 16;

View File

@ -226,6 +226,7 @@ void network_player_update(void) {
if (elapsed > NETWORK_PLAYER_PING_TIMEOUT) {
network_send_ping(np);
}
//LOG_INFO("Ping %s: %u", np->name, np->ping / 2);
}
if (gNetworkType == NT_SERVER) {