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

Always prompt for direction if autoselect disabled #37805

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

ifreund
Copy link
Contributor

@ifreund ifreund commented Feb 7, 2020

Summary

SUMMARY: Bugfixes "Always prompt for direction if autoselect disabled"

Purpose of change

With the current behavior and the AUTOSELECT_SINGLE_VALID_TARGET option
disabled, there is inconsistency in the behavior of pressing c to close
or e to examine. This can cause unintended actions if attempted on an
invalid target.

For example, if standing next to an already closed door and one
quickly presses close and then the direction of the door, the first
keypress will have no effect as the closed door is not a valid target.
The second keypress will then open the door, which is the opposite of
the intent.

Describe the solution

This commit removes the failure message and subsequent abortion of the
action in the case that there is no valid target as to improve consistency.

Testing

Option works as per the intent of this commit in game.

Additional context

Closes #37745, though isn't directly in response to that.

With the current behavior and the AUTOSELECT_SINGLE_VALID_TARGET option
disabled, there is inconsistency in the behavior of pressing c to close
or e to examine.  This can cause unintended actions if attempted on an
invalid target.

For example, if standing next to an already closed door and one
quickly presses `c`lose and then the direction of the door, the first
keypress will have no effect as the closed door is not a valid target.
The second keypress will then open the door, which is the opposite of
the intent.

This commit removes the failure message and subsequent abortion of the
action in the case that there is no valid target as to improve consistency.
@ifreund ifreund added Info / User Interface Game - player communication, menus, etc. [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) labels Feb 7, 2020
@ZhilkinSerg ZhilkinSerg merged commit 073e2dc into CleverRaven:master Feb 7, 2020
@ifreund ifreund deleted the tweak-direction-prompt branch February 7, 2020 21:42
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` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False "There is nothing that can be examined nearby" message
2 participants