[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bzflag-commits
Subject:    SF.net SVN: bzflag:[18466] trunk/bzflag
From:       JeffM2501 () users ! sourceforge ! net
Date:       2008-08-24 19:07:12
Message-ID: E1KXKvg-0002BN-5n () bj8yhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BZFlag-commits mailing list
BZFlag-commits@lists.SourceForge.net
https://lists.SourceForge.net/lists/listinfo/bzflag-commits
irc: #BZFlag @ irc.freenode.net


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic