From: FruitieX Date: Mon, 11 Apr 2011 19:20:26 +0000 (+0300) Subject: looks like we can figure out the netname with stuff that already exists in CSQC :) X-Git-Tag: xonotic-v0.5.0~299 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=276c2e07a461dcac4af4c97068a8fa8798967a06;p=xonotic%2Fxonotic-data.pk3dir.git looks like we can figure out the netname with stuff that already exists in CSQC :) --- diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 929a775b2..144e1f79f 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -920,13 +920,13 @@ void Ent_ShowNames() playerslots[the_entnum].origin_x = ReadShort(); playerslots[the_entnum].origin_y = ReadShort(); playerslots[the_entnum].origin_z = ReadShort(); - print("Updated origin = ", vtos(playerslots[the_entnum].origin), " for player # ", ftos(the_entnum), "\n"); + print("Updated origin = ", vtos(playerslots[the_entnum].origin), " for player ", GetPlayerName(the_entnum-1), "\n"); } if(sf & 2) { playerslots[the_entnum].health = ReadByte(); playerslots[the_entnum].armorvalue = ReadByte(); - print("Updated health/armor = ", ftos(playerslots[the_entnum].health), "/", ftos(playerslots[the_entnum].health), " for player # ", ftos(the_entnum), "\n"); + print("Updated health/armor = ", ftos(playerslots[the_entnum].health), "/", ftos(playerslots[the_entnum].health), "\n"); } /*