Allow pausing with spacebar instead of numpad 5

This commit is contained in:
2015-06-27 02:10:28 -04:00
parent dafe6c2790
commit 50bd421d7d

View File

@@ -1797,9 +1797,15 @@ bool handle_keystroke(sf::Event& event){
pass_event.mouseButton.x = pass_point.x + ul.x;
pass_event.mouseButton.y = pass_point.y + ul.y;
are_done = handle_action(pass_event);
}
if(overall_mode == MODE_SPELL_TARGET)
} else if(overall_mode == MODE_SPELL_TARGET)
spell_cast_hit_return();
else if(overall_mode == MODE_TOWN || overall_mode == MODE_COMBAT || overall_mode == MODE_OUTDOORS) {
pass_point.x = terrain_click[5].x + ul.x;
pass_point.y = terrain_click[5].y + ul.y;
pass_event.mouseButton.x = pass_point.x;
pass_event.mouseButton.y = pass_point.y;
are_done = handle_action(pass_event);
}
break;