[Gcblue-commits] gcb_wx/scripts HotKey.py,1.11,1.12
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-11-29 02:51:46
|
Update of /cvsroot/gcblue/gcb_wx/scripts In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15466/scripts Modified Files: HotKey.py Log Message: Index: HotKey.py =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/scripts/HotKey.py,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** HotKey.py 24 Oct 2006 01:34:37 -0000 1.11 --- HotKey.py 29 Nov 2006 02:51:43 -0000 1.12 *************** *** 69,77 **** def ProcessDoubleClickHook(UnitInfo, flags): # in multiplayer try to take control of available unit first ! ## if (UnitInfo.IsMultiplayerActive()): ! ## if (not UnitInfo.IsPlayerControlled()): ! ## if (UnitInfo.IsAvailable()): ! ## UnitInfo.SendCommand('TakeControl') ! ## return # for units with aircraft show the flight panel unless shift is pressed --- 69,77 ---- def ProcessDoubleClickHook(UnitInfo, flags): # in multiplayer try to take control of available unit first ! if (UnitInfo.IsMultiplayerActive()): ! if (not UnitInfo.IsPlayerControlled()): ! if (UnitInfo.IsAvailable()): ! UnitInfo.TakeControl() ! return # for units with aircraft show the flight panel unless shift is pressed |