Ticket #3703: t3703_summary_error.diff

File t3703_summary_error.diff, 1.1 KB (added by bb, 8 years ago)

Solves the second error (resent cleanup renamed some const, forgot those) also added a missing semicolon.

  • binaries/data/mods/public/gui/summary/counters.js

     
    9696                total.d += (+splitCaption[2]);
    9797            }
    9898
    99             let teamTotal = g_Trained_Color + total.c + '[/color] / ' +
    100                 g_Lost_Color + total.l + '[/color] / ' + g_Killed_Color + total.d + '[/color]';
     99            let teamTotal = g_TrainedColor + total.c + '[/color] / ' +
     100                g_LostColor + total.l + '[/color] / ' + g_KilledColor + total.d + '[/color]';
    101101
    102102            Engine.GetGUIObjectByName("valueDataTeam[" + t + "][" + w + "]").caption = teamTotal;
    103103        }
     
    306306    g_TeamMiscHelperData[playerState.team][position].unitsLost = playerState.statistics.unitsLost.total;
    307307
    308308    if (!playerState.statistics.enemyUnitsKilled.total)
    309         return g_DefaultDecimal
     309        return g_DefaultDecimal;
    310310
    311311    if (!playerState.statistics.unitsLost.total)    // and enemyUnitsKilled.total > 0
    312312        return g_InfiniteSymbol; // infinity symbol