Allow player to warp-escape in Cyborg mode (bug #563)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1697 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-04-30 00:49:36 +00:00
parent b93b77b851
commit 055be38f60
+6
View File
@@ -38,7 +38,13 @@ computer_intelligence (void)
if (CyborgDescPtr)
{
if (PlayerControl[cur_player] & CYBORG_CONTROL)
{
InputState = tactical_intelligence ();
// allow a player to warp-escape in cyborg mode
if (cur_player == 0)
InputState |= (*(HumanInput[cur_player])) () & BATTLE_ESCAPE;
}
else
InputState = (*(HumanInput[cur_player])) ();
}