Ticket #2961: nounitselectionwhilebandbox.patch

File nounitselectionwhilebandbox.patch, 983 bytes (added by Alex, 9 years ago)

Not sure whether this is the proper patch-file format - but you should get the things which changed.

  • binaries/data/mods/public/gui/session/input.js

    Date: Mon, 22 Dec 2014 18:47:03 +0100
    Subject: [PATCH] Don't select units while dragging bandbox because of a vastly
     improved performance.
    
    ---
     binaries/data/mods/public/gui/session/input.js | 7 +------
     1 file changed, 1 insertion(+), 6 deletions(-)
    
    diff --git a/binaries/data/mods/public/gui/session/input.js b/binaries/data/mods/public/gui/session/input.js
    index a231c66..ed91b20 100644
    a b function handleInputBeforeGui(ev, hoveredObject)  
    547547        switch (ev.type)
    548548        {
    549549        case "mousemotion":
    550             var rect = updateBandbox(bandbox, ev, false);
    551 
    552             var ents = Engine.PickFriendlyEntitiesInRect(rect[0], rect[1], rect[2], rect[3], Engine.GetPlayerID());
    553             var preferredEntities = getPreferredEntities(ents);
    554             g_Selection.setHighlightList(preferredEntities);
    555 
     550            updateBandbox(bandbox, ev, false);
    556551            return false;
    557552
    558553        case "mousebuttonup":