Added ALT-R, CTRL-R to restart scenario

This commit is contained in:
jsalmon3 2002-06-13 16:47:57 +00:00
parent 0f39a03f57
commit 6dd09d9a53
3 changed files with 13 additions and 0 deletions

View file

@ -852,6 +852,7 @@
<LI>Fixed bug: #443203: Mouse pointer not updated when scrolling with
keyboard (from Nehal Mistry).
<LI>Fixed bug #568071: Crash after Master-Volume toggle (from ari).
<LI>Added ALT-R, CTRL-R to restart the scenario (from Jimmy Salmon).
</UL>
</UL>

View file

@ -254,6 +254,8 @@ freecraft [OPTIONS] [map.pud|map.pud.gz]
Exit program.
<LI><KBD>ALT+Q, CTRL+Q</KBD><BR>
Quit level.
<LI><KBD>ALT+R, CTRL+R</KBD><BR>
Restart scenario.
<LI><KBD>^</KBD><BR>
Unselect all units.
<LI><KBD># (1-9,0)</KBD><BR>

View file

@ -861,6 +861,16 @@ local int CommandKey(int key)
GameRunning=0;
break;
case 'r'&0x1F:
case 'r':
case 'R': // ALT+R, CTRL+R: Restart scenario
if( !(KeyModifiers&(ModifierAlt|ModifierControl)) ) {
break;
}
RestartScenario=1;
GameRunning=0;
break;
case '.':
case 'i':
case 'I': // ., ALT+I, CTRL+I: Find idle worker