mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Remove act num if set to 0 (#128)
This commit is contained in:
parent
2b4a4a6cd8
commit
fe4aab50b1
1 changed files with 3 additions and 1 deletions
|
|
@ -20,8 +20,10 @@ static struct DjuiText* djuiTextAct[MAX_PLAYERS] = { 0 };
|
||||||
static void playerlist_update_row(u8 i, struct NetworkPlayer *np) {
|
static void playerlist_update_row(u8 i, struct NetworkPlayer *np) {
|
||||||
u8 charIndex = np->overrideModelIndex;
|
u8 charIndex = np->overrideModelIndex;
|
||||||
char sActNum[7];
|
char sActNum[7];
|
||||||
if (np->currActNum != 99) {
|
if (np->currActNum != 99 && np->currActNum != 0) {
|
||||||
snprintf(sActNum, 7, "# %d", np->currActNum);
|
snprintf(sActNum, 7, "# %d", np->currActNum);
|
||||||
|
} else if (np->currActNum == 0) {
|
||||||
|
snprintf(sActNum, 7, "");
|
||||||
} else {
|
} else {
|
||||||
snprintf(sActNum, 7, "Done");
|
snprintf(sActNum, 7, "Done");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue