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

Cap fire age to prevent android overflow #36676

Merged
merged 2 commits into from Jan 5, 2020
Merged

Cap fire age to prevent android overflow #36676

merged 2 commits into from Jan 5, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jan 3, 2020

Summary

SUMMARY: Bugfixes "Cap fire age to prevent android overflow"

Purpose of change

Fixes #33130

Describe the solution

cap fire age as per Kevins comment in linked issue.

Describe alternatives you've considered

N/A

Testing

I have no android device to test this on, so leaving this here as a draft proposal to see if others can test it and it fixes the issue.

Additional context

I dont know if there are other places in the code that add to field age, so that may need to be addressed too.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. OS: Android Issues related to Android operating system labels Jan 3, 2020
@claudiorodriguez
Copy link

This was also happening on OSX, at least on 10.14. Not very familiar with the build process to test the fix though

@anothersimulacrum
Copy link
Member

If you're interested in trying, there's instructions for OSX.

src/map_field.cpp Outdated Show resolved Hide resolved
@claudiorodriguez
Copy link

I was able to get an OSX build going for this branch, and the issue seems fixed as far as I can tell, this makes the game actually playable again. Thanks!

@ghost ghost marked this pull request as ready for review January 4, 2020 20:37
@kevingranade kevingranade merged commit 922b9a6 into CleverRaven:master Jan 5, 2020
@ghost ghost deleted the cap_fire_lifetime branch January 17, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. OS: Android Issues related to Android operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integer Overflow on fire's duration
4 participants