Recommented out some old debugging.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3459 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-04-04 22:41:40 +00:00
parent cead8612c7
commit 5539822fe2
@@ -1,5 +1,5 @@
// //
// $Id: DropBoard.java,v 1.10 2004/10/28 17:59:11 mdb Exp $ // $Id$
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -306,15 +306,15 @@ public class DropBoard extends Board
// try each of three coercions: nothing, one left, one right // try each of three coercions: nothing, one left, one right
for (int c = 0; c < COERCE_DX.length; c++) { for (int c = 0; c < COERCE_DX.length; c++) {
int cx = COERCE_DX[c]; int cx = COERCE_DX[c];
// check if our hypothetical new coordinates are empty // check if our hypothetical new coordinates are empty
if (isBlockEmpty(ox + cx, oy, if (isBlockEmpty(ox + cx, oy,
ORIENT_WIDTHS[oidx], ORIENT_HEIGHTS[oidx])) { ORIENT_WIDTHS[oidx], ORIENT_HEIGHTS[oidx])) {
// Log.info("Block is empty [ox=" + ox + ", cx=" + cx + // Log.info(
// ", oy=" + oy + ", oidx=" + oidx + // "Block is empty [ox=" + ox + ", cx=" + cx +
// ", orient=" + DirectionUtil.toShortString(orient) + // ", oy=" + oy + ", oidx=" + oidx +
// ", owid=" + ORIENT_WIDTHS[oidx] + // ", orient=" + DirectionUtil.toShortString(orient) +
// ", ohei=" + ORIENT_HEIGHTS[oidx] + "]."); // ", owid=" + ORIENT_WIDTHS[oidx] +
// ", ohei=" + ORIENT_HEIGHTS[oidx] + "].");
return new int[] { orient, px + cx, py, 0 }; return new int[] { orient, px + cx, py, 0 };
} }
} }
@@ -326,12 +326,13 @@ public class DropBoard extends Board
// check if our hypothetical new coordinates are empty // check if our hypothetical new coordinates are empty
if (isBlockEmpty(ox, oy - 1, if (isBlockEmpty(ox, oy - 1,
ORIENT_WIDTHS[oidx], ORIENT_HEIGHTS[oidx])) { ORIENT_WIDTHS[oidx], ORIENT_HEIGHTS[oidx])) {
Log.info("Popped-up block is empty [ox=" + ox + // Log.info(
", oy=" + (oy - 1) + ", oidx=" + oidx + // "Popped-up block is empty [ox=" + ox +
", orient=" + DirectionUtil.toShortString(orient) + // ", oy=" + (oy - 1) + ", oidx=" + oidx +
", owid=" + ORIENT_WIDTHS[oidx] + // ", orient=" + DirectionUtil.toShortString(orient) +
", ohei=" + ORIENT_HEIGHTS[oidx] + // ", owid=" + ORIENT_WIDTHS[oidx] +
", bhei=" + _bhei + "]."); // ", ohei=" + ORIENT_HEIGHTS[oidx] +
// ", bhei=" + _bhei + "].");
return new int[] { orient, px, py - 1, 1 }; return new int[] { orient, px, py - 1, 1 };
} }
} }