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,19 +1145,29 @@ DoMoveCursor (PMENU_STATE pMS)
|
||||
}
|
||||
else if (PulsedInputState.key[KEY_MENU_SEARCH])
|
||||
{
|
||||
if (GET_GAME_STATE (ARILOU_SPACE_SIDE) <= 1)
|
||||
{ // HyperSpace search
|
||||
POINT oldpt = pMS->first_item;
|
||||
|
||||
if (!DoStarSearch (pMS))
|
||||
{ // search failed or canceled - return cursor
|
||||
UpdateCursorLocation (pMS, 0, 0, &oldpt);
|
||||
}
|
||||
last_buf[0] = '\0';
|
||||
// make sure cmp fails
|
||||
strcpy (last_buf, " <random garbage> ");
|
||||
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);
|
||||
}
|
||||
else
|
||||
{ // no search in QuasiSpace
|
||||
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, 2),
|
||||
0, NotPositional (), NULL, 0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
SBYTE sx, sy;
|
||||
SIZE ZoomIn, ZoomOut;
|
||||
|
||||
Reference in New Issue
Block a user