From 739e5ece245904bb1e6b2201d69f18130f17596e Mon Sep 17 00:00:00 2001 From: Andreas Gattringer <andreas.gattringer@univie.ac.at> Date: Wed, 31 May 2023 21:11:10 +0200 Subject: [PATCH] fixed bugs in the windows version -- cell inclusion was inverted --- src/cats/plants/juveniles.c | 2 +- src/cats/plants/seeds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cats/plants/juveniles.c b/src/cats/plants/juveniles.c index 34b9096..0108763 100644 --- a/src/cats/plants/juveniles.c +++ b/src/cats/plants/juveniles.c @@ -96,7 +96,7 @@ cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cats_dt_coo struct cats_configuration *conf = ts->conf; // should have been checked in the calling function #ifdef CATS_ON_WINDOWS - if (cell_excluded_by_overlay(conf, row, col) == false) { return 0; } + if (cell_excluded_by_overlay(conf, row, col)) { return 0; } #else if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return 0; } #endif diff --git a/src/cats/plants/seeds.c b/src/cats/plants/seeds.c index 2c4b0ec..797e98f 100644 --- a/src/cats/plants/seeds.c +++ b/src/cats/plants/seeds.c @@ -77,7 +77,7 @@ void cell_seed_production(struct cats_grid *grid, cats_dt_coord row, cats_dt_coo const struct cats_configuration *conf = grid->conf; #ifdef CATS_ON_WINDOWS - if (cell_excluded_by_overlay(conf, row, col) == false) { return; } + if (cell_excluded_by_overlay(conf, row, col)) { return; } #else if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return; } #endif -- GitLab