From 79bb668a9f6d31483a870298e01c94bbe8780c7e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 5 Jul 2012 13:42:08 +0000 Subject: [PATCH] Fixed G_LogPrintf format warning on 64 bit systems added in r2294. --- code/game/g_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/g_client.c b/code/game/g_client.c index 915d194a..6672182d 100644 --- a/code/game/g_client.c +++ b/code/game/g_client.c @@ -942,9 +942,9 @@ char *ClientConnect( int clientNum, qboolean firstTime, qboolean isBot ) { } // if a player reconnects quickly after a disconnect, the client disconnect may never be called, thus flag can get lost in the ether if (ent->inuse) { - G_LogPrintf("Forcing disconnect on active client: %i\n", ent-g_entities); + G_LogPrintf("Forcing disconnect on active client: %i\n", clientNum); // so lets just fix up anything that should happen on a disconnect - ClientDisconnect(ent-g_entities); + ClientDisconnect(clientNum); } // they can connect ent->client = level.clients + clientNum;