]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
looks like we can figure out the netname with stuff that already exists in CSQC :)
authorFruitieX <fruitiex@gmail.com>
Mon, 11 Apr 2011 19:20:26 +0000 (22:20 +0300)
committerFruitieX <fruitiex@gmail.com>
Mon, 11 Apr 2011 19:20:26 +0000 (22:20 +0300)
qcsrc/client/Main.qc

index 929a775b2b897d2fd338a245e3beb3fb0f455751..144e1f79f41e3fcac5a6e92a33db5cb66710f044 100644 (file)
@@ -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");
     }
 
     /*