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

Add sanity checks for code that uses SquaredDistanceTo in NoMoveOn. #534

Merged
merged 2 commits into from Aug 5, 2014

Conversation

skittles1
Copy link

A sanity check for different rooms which returns $ was added to SquaredDistanceTo() in nomoveon.kod in the last update, unfortunately there were functions using this that either don't have both objects in the same room (yelling) or have cases where one object has $ room (casting an attack spell on a monster as it dies). This pull request fixes both those cases by not calling Sqdt() in both of those cases. There are other cases where this error may occur but these are the two most frequent, and I believe the check Gar put in place will likely catch more important errors (that we won't see in the log) than if it isn't there.

NOTE: the atakspel.kod change needs 104 testing, I couldn't trigger it locally due to needing poor latency to test earthquake/blast of fire combos which will trigger the error.

@skittles1 skittles1 added this to the 1.0.1.3 hotfixes milestone Aug 2, 2014
@skittles1 skittles1 changed the title Add sanity checks for code that uses SquaredDistanceTo in Holder. Add sanity checks for code that uses SquaredDistanceTo in NoMoveOn. Aug 3, 2014
@Daenks Daenks merged commit b8e953f into OpenMeridian:master Aug 5, 2014
@skittles1 skittles1 deleted the squareddistancetoerrors branch August 5, 2014 20:04
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.

None yet

2 participants