mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-25 21:45:12 +00:00
Use the basic character on the title font if it's missing
This commit is contained in:
parent
f593a263aa
commit
cdd077c9f8
2 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,11 @@ static void djui_font_title_render_char(char* c) {
|
||||||
if (*c == ' ') { return; }
|
if (*c == ' ') { return; }
|
||||||
|
|
||||||
u32 index = djui_unicode_get_sprite_index(c);
|
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 tx = index % 16;
|
||||||
u32 ty = index / 16;
|
u32 ty = index / 16;
|
||||||
|
|
|
@ -226,6 +226,7 @@ void network_player_update(void) {
|
||||||
if (elapsed > NETWORK_PLAYER_PING_TIMEOUT) {
|
if (elapsed > NETWORK_PLAYER_PING_TIMEOUT) {
|
||||||
network_send_ping(np);
|
network_send_ping(np);
|
||||||
}
|
}
|
||||||
|
//LOG_INFO("Ping %s: %u", np->name, np->ping / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gNetworkType == NT_SERVER) {
|
if (gNetworkType == NT_SERVER) {
|
||||||
|
|
Loading…
Reference in a new issue