Author: pepeto
Date: Fri Nov 28 09:41:26 2014
New Revision: 27147

URL: http://svn.gna.org/viewcvs/freeciv?rev=27147&view=rev
Log:
Simplify players_on_same_team().

See gna patch #5460

Modified:
    trunk/common/player.c

Modified: trunk/common/player.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/player.c?rev=27147&r1=27146&r2=27147&view=diff
==============================================================================
--- trunk/common/player.c       (original)
+++ trunk/common/player.c       Fri Nov 28 09:41:26 2014
@@ -1308,7 +1308,7 @@
 bool players_on_same_team(const struct player *pplayer1,
                           const struct player *pplayer2)
 {
-  return (pplayer1->team && pplayer1->team == pplayer2->team);
+  return pplayer1->team == pplayer2->team;
 }
 
 /**************************************************************************


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to