Skip to content

Commit

Permalink
-Change: Make shift+Guard activate Area Guard
Browse files Browse the repository at this point in the history
fixes #311
  • Loading branch information
miniupnp committed May 11, 2018
1 parent 771f915 commit 2d44f2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/widget_click.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ bool GUI_Widget_TextButton_Click(Widget *w)
}

action = actions[w->index - 8];
if (g_dune2_enhanced) {
/* AREA GUARD instead of GUARD if SHIFT is pressed */
if (action == ACTION_GUARD && (Input_Test(0x2c) || Input_Test(0x39))) action = ACTION_AREA_GUARD;
Debug("GUI_Widget_TextButton_Click(%p index=%d) action=%d\n", w, w->index, action);
}

unitAction = u->nextActionID;
if (unitAction == ACTION_INVALID) {
Expand Down

0 comments on commit 2d44f2c

Please sign in to comment.