From 589494f15d12ec210dd02b9cd9e8e91e860ea97f Mon Sep 17 00:00:00 2001 From: Wolf Posdorfer Date: Wed, 29 Jun 2011 08:15:25 +0000 Subject: [PATCH] reversi bugfix by adipose git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12549 b35dd754-fafc-0310-a699-88a17e54d16e --- .../src/java/org/jivesoftware/game/reversi/ReversiModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/reversi/src/java/org/jivesoftware/game/reversi/ReversiModel.java b/src/plugins/reversi/src/java/org/jivesoftware/game/reversi/ReversiModel.java index cd7c34ec9..cc9f65afe 100644 --- a/src/plugins/reversi/src/java/org/jivesoftware/game/reversi/ReversiModel.java +++ b/src/plugins/reversi/src/java/org/jivesoftware/game/reversi/ReversiModel.java @@ -399,7 +399,7 @@ else if (board[i] == player) { if (position < 47 && position%8 > 1) { edge = false; for (int i=position+7; !edge; i+=7) { - if (i < 8 || i%8==7) edge = true; + if (i > 55 || i%8==0) edge = true; if (board[i] == BLANK) { break; }