|
From: <Jef...@us...> - 2008-08-24 18:47:46
|
Revision: 18464
http://bzflag.svn.sourceforge.net/bzflag/?rev=18464&view=rev
Author: JeffM2501
Date: 2008-08-24 18:47:55 +0000 (Sun, 24 Aug 2008)
Log Message:
-----------
add the client version to the API player record.
Modified Paths:
--------------
branches/v2_99_shot_branch/include/bzfsAPI.h
branches/v2_99_shot_branch/src/bzfs/bzfsAPI.cxx
Modified: branches/v2_99_shot_branch/include/bzfsAPI.h
===================================================================
--- branches/v2_99_shot_branch/include/bzfsAPI.h 2008-08-24 18:36:57 UTC (rev 18463)
+++ branches/v2_99_shot_branch/include/bzfsAPI.h 2008-08-24 18:47:55 UTC (rev 18464)
@@ -1440,7 +1440,7 @@
bz_eTeamType team;
- float lastUpdateTime;
+ float lastUpdateTime;
bz_PlayerUpdateState lastKnownState;
bz_PlayerUpdateState currentState;
@@ -1450,6 +1450,7 @@
bz_ApiString currentFlag;
bz_APIStringList flagHistory;
+ bz_ApiString clientVersion;
bool spawned;
bool verified;
bool globalUser;
Modified: branches/v2_99_shot_branch/src/bzfs/bzfsAPI.cxx
===================================================================
--- branches/v2_99_shot_branch/src/bzfs/bzfsAPI.cxx 2008-08-24 18:36:57 UTC (rev 18463)
+++ branches/v2_99_shot_branch/src/bzfs/bzfsAPI.cxx 2008-08-24 18:47:55 UTC (rev 18464)
@@ -1142,6 +1142,7 @@
playerRecord->verified=player->accessInfo.isVerified();
playerRecord->globalUser=player->authentication.isGlobal();
+ playerRecord->clientVersion = player->player.getClientVersion();
playerRecord->ipAddress=player->netHandler->getTargetIP();
playerRecord->update();
return playerRecord;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|