Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cats
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDC
cats
Commits
739e5ece
Commit
739e5ece
authored
2 years ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cats/plants/juveniles.c
+1
-1
1 addition, 1 deletion
src/cats/plants/juveniles.c
src/cats/plants/seeds.c
+1
-1
1 addition, 1 deletion
src/cats/plants/seeds.c
with
2 additions
and
2 deletions
src/cats/plants/juveniles.c
+
1
−
1
View file @
739e5ece
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/cats/plants/seeds.c
+
1
−
1
View file @
739e5ece
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment