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:
@@ -1145,17 +1145,27 @@ DoMoveCursor (PMENU_STATE pMS)
|
|||||||
}
|
}
|
||||||
else if (PulsedInputState.key[KEY_MENU_SEARCH])
|
else if (PulsedInputState.key[KEY_MENU_SEARCH])
|
||||||
{
|
{
|
||||||
POINT oldpt = pMS->first_item;
|
if (GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)
|
||||||
|
{ // HyperSpace search
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
// make sure cmp fails
|
||||||
|
strcpy (last_buf, " <random garbage> ");
|
||||||
|
UpdateCursorInfo (pMS, last_buf);
|
||||||
|
|
||||||
|
SetMenuRepeatDelay (MIN_ACCEL_DELAY, MAX_ACCEL_DELAY,
|
||||||
|
STEP_ACCEL_DELAY, TRUE);
|
||||||
|
SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_NONE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{ // no search in QuasiSpace
|
||||||
|
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, 2),
|
||||||
|
0, NotPositional (), NULL, 0);
|
||||||
}
|
}
|
||||||
last_buf[0] = '\0';
|
|
||||||
UpdateCursorInfo (pMS, last_buf);
|
|
||||||
|
|
||||||
SetMenuRepeatDelay (MIN_ACCEL_DELAY, MAX_ACCEL_DELAY, STEP_ACCEL_DELAY, TRUE);
|
|
||||||
SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_NONE);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user