moved all selection-related bits into Selection.cs

This commit is contained in:
Chris Forbes
2010-02-08 19:08:44 +13:00
parent 37af0f2f04
commit 227b73830d
5 changed files with 77 additions and 66 deletions

View File

@@ -292,7 +292,8 @@ namespace OpenRa
if( !Game.chat.isChatting )
if( e.KeyCode >= Keys.D0 && e.KeyCode <= Keys.D9 )
Game.controller.DoControlGroup( world, (int)e.KeyCode - (int)Keys.D0, (Modifiers)(int)e.Modifiers );
Game.controller.selection.DoControlGroup( world,
(int)e.KeyCode - (int)Keys.D0, (Modifiers)(int)e.Modifiers );
if( sync != Game.world.SyncHash() )
throw new InvalidOperationException( "Desync in OnKeyDown" );