From 7c62fe276bd2cfe3e5026003a7af3c9965707d1c Mon Sep 17 00:00:00 2001 From: mdb Date: Tue, 29 Jan 2002 23:47:34 +0000 Subject: [PATCH] Removed the code that allowed a player to play a piecen that was freed up by their tile placement on the same turn. git-svn-id: https://samskivert.googlecode.com/svn/trunk@548 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../atlanti/client/AtlantiController.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/projects/atlanti/src/java/com/samskivert/atlanti/client/AtlantiController.java b/projects/atlanti/src/java/com/samskivert/atlanti/client/AtlantiController.java index 12058919..38e6f1a5 100644 --- a/projects/atlanti/src/java/com/samskivert/atlanti/client/AtlantiController.java +++ b/projects/atlanti/src/java/com/samskivert/atlanti/client/AtlantiController.java @@ -124,17 +124,6 @@ public class VenisonController if (event.getName().equals(VenisonObject.PIECENS)) { // a piecen was removed, update the board _panel.board.clearPiecen(event.getKey()); - - // if we just freed up our only playable piecen... - int pcount = TileUtil.countPiecens(_venobj.piecens, _selfIndex); - if (pcount == (PIECENS_PER_PLAYER-1) && - // ...and it's also our turn... - _venobj.turnHolder.equals(_self.username)) { - // ...reenable piecen placement - _panel.board.enablePiecenPlacement(); - // and, enable the noplace button - _panel.noplace.setEnabled(true); - } } } @@ -154,12 +143,11 @@ public class VenisonController // if we have no piecens to place or if there are no unclaimed // features on the placed tile, we immediately disable piecen // placement in the board and expect that the server will end - // our turn (however, it may determine that our placement - // freed up one of our pieces which we will react to and - // reenable piecen placement) + // our turn int pcount = TileUtil.countPiecens(_venobj.piecens, _selfIndex); if (pcount >= PIECENS_PER_PLAYER || !tile.hasUnclaimedFeature()) { _panel.board.cancelPiecenPlacement(); + _panel.noplace.setEnabled(false); } else { // otherwise, enable the noplace button