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 Travis build failure overmap test #36728

Closed
wants to merge 8 commits into from
Closed

Fix Travis build failure overmap test #36728

wants to merge 8 commits into from

Conversation

8street
Copy link
Contributor

@8street 8street commented Jan 5, 2020

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

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 );
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@8street 8street changed the title [WIP] Fix Travis build failure overmap test Fix Travis build failure overmap test Jan 5, 2020
@8street
Copy link
Contributor Author

8street commented Jan 5, 2020

Test passed: default_overmap_generation_always_succeeds
But in Travis build also fail translation test or something like that. Would somebody please fix this.

@kevingranade
Copy link
Member

This is reporting an actual bug, that PR actually broke anthill generation.

@8street 8street deleted the Fix-Travis-build-failyre-tests branch January 11, 2020 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants