Ticket #3194: t3194_display_units_to_queue_on_same_turn.patch

File t3194_display_units_to_queue_on_same_turn.patch, 630 bytes (added by elexis, 9 years ago)

This fixes the issue described above with less performance impact. It makes training units generally more responsive. Try pressing shift key many times, you will see that its only updated once per turn without the patch. One more patch to go before the ticket can be closed... (Display the units that will be queued on the next turn if the user started the production).

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

     
    402402        if (!message)
    403403            break;
    404404        handleNetMessage(message);
    405405    }
    406406
     407    updateSelectionDetails();
    407408    updateCursorAndTooltip();
    408409
    409410    // If the selection changed, we need to regenerate the sim display (the display depends on both the
    410411    // simulation state and the current selection).
    411412    if (g_Selection.dirty)