Fixed quasispace search and leftover text bugs in star search

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2189 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2006-01-18 05:00:07 +00:00
parent 6cae0f2437
commit a0f58ba3c2
+12 -2
View File
@@ -1145,19 +1145,29 @@ DoMoveCursor (PMENU_STATE pMS)
} }
else if (PulsedInputState.key[KEY_MENU_SEARCH]) else if (PulsedInputState.key[KEY_MENU_SEARCH])
{ {
if (GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)
{ // HyperSpace search
POINT oldpt = pMS->first_item; POINT oldpt = pMS->first_item;
if (!DoStarSearch (pMS)) if (!DoStarSearch (pMS))
{ // search failed or canceled - return cursor { // search failed or canceled - return cursor
UpdateCursorLocation (pMS, 0, 0, &oldpt); UpdateCursorLocation (pMS, 0, 0, &oldpt);
} }
last_buf[0] = '\0'; // make sure cmp fails
strcpy (last_buf, " <random garbage> ");
UpdateCursorInfo (pMS, last_buf); UpdateCursorInfo (pMS, last_buf);
SetMenuRepeatDelay (MIN_ACCEL_DELAY, MAX_ACCEL_DELAY, STEP_ACCEL_DELAY, TRUE); SetMenuRepeatDelay (MIN_ACCEL_DELAY, MAX_ACCEL_DELAY,
STEP_ACCEL_DELAY, TRUE);
SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_NONE); SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_NONE);
} }
else else
{ // no search in QuasiSpace
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, 2),
0, NotPositional (), NULL, 0);
}
}
else
{ {
SBYTE sx, sy; SBYTE sx, sy;
SIZE ZoomIn, ZoomOut; SIZE ZoomIn, ZoomOut;