Skip to content

Commit

Permalink
-Change: Shift attack => Ambush, Shift Guard => Area Guard
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed May 19, 2018
1 parent c34fe99 commit 36387f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gui/widget_click.c
Expand Up @@ -256,8 +256,10 @@ 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;
if (Input_Test(0x2c) || Input_Test(0x39)) { /* LSHIFT or RSHIFT is pressed */
if (action == ACTION_GUARD) action = ACTION_AREA_GUARD; /* AREA GUARD instead of GUARD */
else if (action == ACTION_ATTACK) action = ACTION_AMBUSH; /* AMBUSH instead of ATTACK */
}
Debug("GUI_Widget_TextButton_Click(%p index=%d) action=%d\n", w, w->index, action);
}

Expand Down

0 comments on commit 36387f5

Please sign in to comment.