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

Initialize tripoint to avoid always teleporting monsters to ground level #36423

Merged
merged 1 commit into from
Dec 25, 2019

Conversation

kevingranade
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Fixes #36403
Monsters were teleporting to ground level when they stepped into a teleporter trap.

Describe the solution

Initialize the tripoint used to determine teleport target location to the origin position so that it is fully initialized before use.

Testing

Find a lab or other underground area with open ground above it.
Place traps underground, arrange for monsters to step on them.
Teleport aboveground, wait around for monsters to appear.

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. labels Dec 25, 2019
@ZhilkinSerg ZhilkinSerg merged commit e52734e into CleverRaven:master Dec 25, 2019
@kevingranade kevingranade deleted the fix-monster-teleport branch June 28, 2020 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monsters teleport through floors
2 participants