Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/tick.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tick.c')
-rw-r--r--src/tick.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tick.c b/src/tick.c
index 598087a..e351155 100644
--- a/src/tick.c
+++ b/src/tick.c
@@ -236,7 +236,7 @@ static void tick(Game *game, Arena a) {
case BLUE_LEFT:
if (
(x > 0 && isRed(lastState->grid[x - 1 + y * GRIDWIDTH])) ||
- (x < GRIDWIDTH - 1 && isRed(lastState->grid[x + 1 + y * GRIDWIDTH])) ||
+ // (x < GRIDWIDTH - 1 && isRed(lastState->grid[x + 1 + y * GRIDWIDTH])) ||
(y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH])) ||
(y < GRIDHEIGHT - 1 && isRed(lastState->grid[x + (y + 1) * GRIDWIDTH]))
) {
@@ -252,7 +252,7 @@ static void tick(Game *game, Arena a) {
break;
case BLUE_RIGHT:
if (
- (x > 0 && isRed(lastState->grid[x - 1 + y * GRIDWIDTH])) ||
+ // (x > 0 && isRed(lastState->grid[x - 1 + y * GRIDWIDTH])) ||
(x < GRIDWIDTH - 1 && isRed(lastState->grid[x + 1 + y * GRIDWIDTH])) ||
(y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH])) ||
(y < GRIDHEIGHT - 1 && isRed(lastState->grid[x + (y + 1) * GRIDWIDTH]))
@@ -271,8 +271,8 @@ static void tick(Game *game, Arena a) {
if (
(x > 0 && isRed(lastState->grid[x - 1 + y * GRIDWIDTH])) ||
(x < GRIDWIDTH - 1 && isRed(lastState->grid[x + 1 + y * GRIDWIDTH])) ||
- (y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH])) ||
- (y < GRIDHEIGHT - 1 && isRed(lastState->grid[x + (y + 1) * GRIDWIDTH]))
+ (y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH]))// ||
+ // (y < GRIDHEIGHT - 1 && isRed(lastState->grid[x + (y + 1) * GRIDWIDTH]))
) {
game->state.grid[x + y * GRIDWIDTH] = BLUE;
} else if (
@@ -288,7 +288,7 @@ static void tick(Game *game, Arena a) {
if (
(x > 0 && isRed(lastState->grid[x - 1 + y * GRIDWIDTH])) ||
(x < GRIDWIDTH - 1 && isRed(lastState->grid[x + 1 + y * GRIDWIDTH])) ||
- (y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH])) ||
+ // (y > 0 && isRed(lastState->grid[x + (y - 1) * GRIDWIDTH])) ||
(y < GRIDHEIGHT - 1 && isRed(lastState->grid[x + (y + 1) * GRIDWIDTH]))
) {
game->state.grid[x + y * GRIDWIDTH] = BLUE;