Engine: use correct format specifiers for edict_t

edict_t is an u16 and will always be as that is the type it uses in the engine itself.
This commit is contained in:
Kawe Mazidjatari 2025-01-09 17:06:29 +01:00
parent eee6aed033
commit 03dd7046a6

View File

@ -45,7 +45,7 @@ static void Host_Status_PrintClient(CClient* client, bool bShowAddress, void (*p
if (nci != NULL) if (nci != NULL)
{ {
print("# %i \"%s\" %llu %s %i %i %s %d\n", print("# %hu \"%s\" %llu %s %i %i %s %d\n",
client->GetHandle(), client->GetServerName(), client->GetNucleusID(), COM_FormatSeconds(static_cast<int>(nci->GetTimeConnected())), client->GetHandle(), client->GetServerName(), client->GetNucleusID(), COM_FormatSeconds(static_cast<int>(nci->GetTimeConnected())),
static_cast<int>(1000.0f * nci->GetAvgLatency(FLOW_OUTGOING)), static_cast<int>(100.0f * nci->GetAvgLoss(FLOW_INCOMING)), state, nci->GetDataRate()); static_cast<int>(1000.0f * nci->GetAvgLatency(FLOW_OUTGOING)), static_cast<int>(100.0f * nci->GetAvgLoss(FLOW_INCOMING)), state, nci->GetDataRate());
@ -56,7 +56,7 @@ static void Host_Status_PrintClient(CClient* client, bool bShowAddress, void (*p
} }
else else
{ {
print("#%2i \"%s\" %llu %s\n", client->GetHandle(), client->GetServerName(), client->GetNucleusID(), state); print("#%2hu \"%s\" %llu %s\n", client->GetHandle(), client->GetServerName(), client->GetNucleusID(), state);
} }
//print("\n"); //print("\n");