-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Travis build failure overmap test #36728
Fix Travis build failure overmap test #36728
Conversation
Update forked repo
Update forked repo
Update forked repo
src/overmap.cpp
Outdated
@@ -3174,9 +3174,6 @@ void overmap::build_anthill( const tripoint &p, int s ) | |||
} | |||
} | |||
} | |||
if( queenpoints.empty() ) { | |||
debugmsg( "No queenpoints when building anthill" ); | |||
} | |||
const tripoint target = random_entry( queenpoints ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random_entry
will return a default constructed value, in that case (0,0,0) - so the queen chamber will always be at that point within each overmap - irregardless of the location of the anthill.
It would probably be best to skip setting the terrain "ants_queen" in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Test passed: |
This is reporting an actual bug, that PR actually broke anthill generation. |
Summary
SUMMARY: Bugfixes "Fix travis build overmap failure tests"
Purpose of change
Due to PR #36702 now sometimes an anthill is not created. An debug message is generated that failed overmap test.
Describe the solution
Deleted a useless message. If there is no anthill, the game will not be crashed anyway.
Describe alternatives you've considered
Testing
Test passed:
default_overmap_generation_always_succeeds
Additional context