Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix feeding fires from a firewood source #47092

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

wapcaplet
Copy link
Contributor

Summary

Bugfixes "Fix feeding fires from a firewood source"

Purpose of change

Fix #47008

Describe the solution

Rename no_fire to have_fire, and un-negate its usage. Default have_fire to true, so player_activity::do_turn will try feeding the fire at least once after it is lit (and will set have_fire to false only if there is in fact no fire to feed).

Describe alternatives you've considered

Renaming the variable isn't strictly necessary but I think improves overall clarity.

Testing

See original issue

Additional context

Successfully keeping a fire going with splintered wood:
image

Rename the negated boolean variable `no_fire` to `have_fire` and
un-negate its usage.

Make `have_fire` default true, so `player_activity::do_turn` will check
for the presence of fire at least once.
@BrettDong BrettDong added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` labels Jan 29, 2021
@kevingranade kevingranade merged commit 302ba1a into CleverRaven:master Jan 29, 2021
@wapcaplet wapcaplet deleted the w-smoke-if-you-got-em branch March 1, 2021 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Character does not use firewood source to keep fire going
3 participants