Skip to content

Commit f9d40cc

Browse files
committed
Use speedup constant instead of raw values so it can be changed later.
1 parent 25d1704 commit f9d40cc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/assets/javascripts/angular/directives/chart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ gg.directive('chart', ['$compile', function($compile) {
127127
options.xAxis.plotBands = [];
128128
speed_multiplier = 1;
129129
if (scope.$parent.match.expansion_tag == 'LotV') {
130-
speed_multiplier = 1.4;
130+
speed_multiplier = Sc2.LOTV_SPEEDUP;
131131
}
132132
_.each(scope.$parent.match.engagements, function(engagement) {
133133
options.xAxis.plotBands.push({

app/assets/javascripts/angular/directives/macrochart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ gg.directive('macrochart', [function() {
7575

7676
speed_multiplier = 1;
7777
if (scope.$parent.match.expansion_tag == 'LotV') {
78-
speed_multiplier = 1.4;
78+
speed_multiplier = Sc2.LOTV_SPEEDUP;
7979
}
8080

8181
if (scope.$parent.match.engagements) {

app/assets/javascripts/angular/directives/protosschart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ gg.directive('protosschart', [function() {
7676

7777
speed_multiplier = 1;
7878
if (scope.$parent.match.expansion_tag == 'LotV') {
79-
speed_multiplier = 1.4;
79+
speed_multiplier = Sc2.LOTV_SPEEDUP;
8080
}
8181

8282
nametoshow = scope.$parent.entity.identity.name;

app/assets/javascripts/angular/directives/terranchart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ gg.directive('terranchart', [function() {
7676

7777
speed_multiplier = 1;
7878
if (scope.$parent.match.expansion_tag == 'LotV') {
79-
speed_multiplier = 1.4;
79+
speed_multiplier = Sc2.LOTV_SPEEDUP;
8080
}
8181

8282
nametoshow = scope.$parent.entity.identity.name;

0 commit comments

Comments
 (0)