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

Clear traps in test clear_map helper #27981

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

The monster speed tests (monster_speed_square and monster_speed_trig) would occasionally fail.

At least sometimes, this was caused by the monster getting caught in traps which delayed them.

Describe the solution

Clear the traps before the test. This also clears traps in any other test using the relevant map helper function, so could potentially solve other test issues.

Without this, monsters in the monster speed tests would sometimes get
caught in traps which caused those tests to fail.
@ZhilkinSerg ZhilkinSerg added Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. labels Feb 1, 2019
@ZhilkinSerg ZhilkinSerg merged commit a9b8568 into CleverRaven:master Feb 1, 2019
@jbytheway jbytheway deleted the monster_speed_test_fix branch February 2, 2019 21:19
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` Code: Tests Measurement, self-control, statistics, balancing. Fields / Furniture / Terrain / Traps Objects that are part of the map or its features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants