Skip to content
Snippets Groups Projects
Commit 739e5ece authored by Andreas Gattringer's avatar Andreas Gattringer
Browse files

fixed bugs in the windows version -- cell inclusion was inverted

parent f79d8be5
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cats_dt_coo ...@@ -96,7 +96,7 @@ cell_maturation(struct cats_grid *grid, struct cats_thread_info *ts, cats_dt_coo
struct cats_configuration *conf = ts->conf; struct cats_configuration *conf = ts->conf;
// should have been checked in the calling function // should have been checked in the calling function
#ifdef CATS_ON_WINDOWS #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 #else
if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return 0; } if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return 0; }
#endif #endif
......
...@@ -77,7 +77,7 @@ void cell_seed_production(struct cats_grid *grid, cats_dt_coord row, cats_dt_coo ...@@ -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; const struct cats_configuration *conf = grid->conf;
#ifdef CATS_ON_WINDOWS #ifdef CATS_ON_WINDOWS
if (cell_excluded_by_overlay(conf, row, col) == false) { return; } if (cell_excluded_by_overlay(conf, row, col)) { return; }
#else #else
if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return; } if (__builtin_expect(cell_excluded_by_overlay(conf, row, col), false)) { return; }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment