From 055be38f6072078871175f13ea6a916ebfc29b82 Mon Sep 17 00:00:00 2001 From: avolkov Date: Sat, 30 Apr 2005 00:49:36 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/intel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc2/src/sc2code/intel.c b/sc2/src/sc2code/intel.c index 8e963dde1..2b46e2afe 100644 --- a/sc2/src/sc2code/intel.c +++ b/sc2/src/sc2code/intel.c @@ -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])) (); }