comparison xrogue/command.c @ 153:23fff8f7b303

xrogue: escaping to a shell should not cause a move to the left. This was due to the classic error of forgetting a break statement.
author John "Elwin" Edwards
date Thu, 28 May 2015 13:51:01 -0400
parents 0c775afe0072
children a0a57cf42810
comparison
equal deleted inserted replaced
152:0c775afe0072 153:23fff8f7b303
187 */ 187 */
188 if (count && !running && player.t_action == A_NIL) 188 if (count && !running && player.t_action == A_NIL)
189 count--; 189 count--;
190 190
191 switch (ch) { 191 switch (ch) {
192 case '!' : shell(); 192 case '!' : shell(); break;
193 case KEY_LEFT : do_move(0, -1); 193 case KEY_LEFT : do_move(0, -1);
194 when KEY_DOWN : do_move(1, 0); 194 when KEY_DOWN : do_move(1, 0);
195 when KEY_UP : do_move(-1, 0); 195 when KEY_UP : do_move(-1, 0);
196 when KEY_RIGHT : do_move(0, 1); 196 when KEY_RIGHT : do_move(0, 1);
197 when KEY_HOME : do_move(-1, -1); 197 when KEY_HOME : do_move(-1, -1);