[gnome-games] Included the rot_next variable when getting the block positions for preview



commit a6e428f5c0836e098fc863174ace91231fadeb35
Author: Craig Duncan <git duncanc co uk>
Date:   Mon Aug 2 22:32:02 2010 +0100

    Included the rot_next variable when getting the block positions for preview
    
    When calculating where to place the preview blocks, the code was using the '0' configuration for the xy positions
    By using the rot_next variables (which indicates the starting rotation of the next piece) we can show how the piece will appear

 quadrapassel/preview.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/quadrapassel/preview.cpp b/quadrapassel/preview.cpp
index e14caad..c758db8 100644
--- a/quadrapassel/preview.cpp
+++ b/quadrapassel/preview.cpp
@@ -108,7 +108,7 @@ Preview::previewBlock(gint bnr, gint bcol)
 	for (x = 0; x < PREVIEW_WIDTH; x++) {
 		for (y = 0; y < PREVIEW_HEIGHT; y++) {
 			if ((blocknr != -1) &&
-			    blockTable[blocknr][0][x][y]) {
+			    blockTable[blocknr][rot_next][x][y]) {
 				blocks[x][y].emptyCell ();
 				blocks[x][y].what = LAYING;
 				blocks[x][y].createActor (piece,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]