Count piecens from the distributed object rather than the board so that we

correctly disallow placement of a piecen that was freed on the same turn.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@546 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2002-01-29 23:46:37 +00:00
parent 38b45bda04
commit 89807fe8b7
@@ -1,5 +1,5 @@
//
// $Id: AtlantiManager.java,v 1.21 2001/12/18 11:58:53 mdb Exp $
// $Id: AtlantiManager.java,v 1.22 2002/01/29 23:46:37 mdb Exp $
package com.threerings.venison;
@@ -633,7 +633,7 @@ public class VenisonManager
// if the player has no free piecens or if there are no
// unclaimed features on this tile, we end their turn
// straight away
int pcount = TileUtil.countPiecens(_tiles, pidx);
int pcount = TileUtil.countPiecens(_venobj.piecens, pidx);
if (pcount >= PIECENS_PER_PLAYER ||
!tile.hasUnclaimedFeature()) {
endTurn();