[Orxonox-commit 4289] r8960 - code/branches/spaceraceTwo/src/modules/gametypes
eceline at orxonox.net
eceline at orxonox.net
Wed Dec 7 14:51:58 CET 2011
Author: eceline
Date: 2011-12-07 14:51:57 +0100 (Wed, 07 Dec 2011)
New Revision: 8960
Modified:
code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.cc
Log:
RaceCheckPoint::fire doesn't work
Modified: code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.cc
===================================================================
--- code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.cc 2011-12-07 13:38:31 UTC (rev 8959)
+++ code/branches/spaceraceTwo/src/modules/gametypes/RaceCheckPoint.cc 2011-12-07 13:51:57 UTC (rev 8960)
@@ -139,8 +139,9 @@
for (std::map<PlayerInfo*, Player>::iterator it = gametype->players_.begin(); it != gametype->players_.end(); ++it)
{
unsigned int clientid1=0, clientid2=0,clientid3=0;
- if(it->first !=NULL)clientid1 = it->first->getClientID();
-
+ if(it->second.info_ !=NULL)clientid1 = it->second.info_->getClientID();else orxout()<<"second NULL"<<endl;
+ if(it->first !=NULL)clientid1 = it->first->getClientID();else orxout()<<"first NULL"<<endl;
+ clientid1 = it->first->getClientID();
if(player3 != NULL && player3->info_ != NULL)clientid2 = player3->info_->getClientID();
if(player2 != NULL )clientid3 = player2->getClientID();
orxout()<<clientid1<<endl;orxout()<<clientid2<<endl;orxout()<<clientid3<<endl;
More information about the Orxonox-commit
mailing list