select cursor support, better selection

This commit is contained in:
Chris Forbes
2009-10-20 18:09:44 +13:00
parent 24c49ebb8f
commit 5a67220f0e
6 changed files with 47 additions and 28 deletions

View File

@@ -80,9 +80,7 @@ using System.Runtime.InteropServices;
game.Tick();
// rude hack
game.viewport.cursor = (game.controller.orderGenerator is UnitOrderGenerator)
&& (game.controller.orderGenerator as UnitOrderGenerator).selection.Count > 0
? OpenRa.Game.Cursor.Move : OpenRa.Game.Cursor.Default;
game.viewport.cursor = game.controller.ChooseCursor();
Application.DoEvents();
}