|
From: <Jef...@us...> - 2008-08-24 19:07:02
|
Revision: 18466
http://bzflag.svn.sourceforge.net/bzflag/?rev=18466&view=rev
Author: JeffM2501
Date: 2008-08-24 19:07:11 +0000 (Sun, 24 Aug 2008)
Log Message:
-----------
add the client version to the API player record.
Modified Paths:
--------------
trunk/bzflag/include/bzfsAPI.h
trunk/bzflag/src/bzfs/bzfsAPI.cxx
Modified: trunk/bzflag/include/bzfsAPI.h
===================================================================
--- trunk/bzflag/include/bzfsAPI.h 2008-08-24 19:06:26 UTC (rev 18465)
+++ trunk/bzflag/include/bzfsAPI.h 2008-08-24 19:07:11 UTC (rev 18466)
@@ -1392,9 +1392,6 @@
bz_eTeamType team;
- float lastUpdateTime;
- bz_PlayerUpdateState lastKnownState;
- bz_PlayerUpdateState currentState;
bz_ApiString ipAddress;
@@ -1402,6 +1399,11 @@
bz_ApiString currentFlag;
bz_APIStringList flagHistory;
+ float lastUpdateTime;
+ bz_PlayerUpdateState lastKnownState;
+ bz_PlayerUpdateState currentState;
+
+ bz_ApiString clientVersion;
bool spawned;
bool verified;
bool globalUser;
@@ -2149,4 +2151,4 @@
// c-basic-offset: 2 ***
// indent-tabs-mode: t ***
// End: ***
-// ex: shiftwidth=2 tabstop=8
+// ex: shiftwidth=2 tabstop=8
\ No newline at end of file
Modified: trunk/bzflag/src/bzfs/bzfsAPI.cxx
===================================================================
--- trunk/bzflag/src/bzfs/bzfsAPI.cxx 2008-08-24 19:06:26 UTC (rev 18465)
+++ trunk/bzflag/src/bzfs/bzfsAPI.cxx 2008-08-24 19:07:11 UTC (rev 18466)
@@ -1189,6 +1189,9 @@
playerRecord->verified=player->accessInfo.isVerified();
playerRecord->globalUser=player->authentication.isGlobal();
+
+ playerRecord->clientVersion = player->player.getClientVersion();
+
if(player->netHandler)
playerRecord->ipAddress=player->netHandler->getTargetIP();
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|