Skip to content

Commit 05ec967

Browse files
committed
merge hell
2 parents f86d0d6 + 1c12808 commit 05ec967

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/assets/javascripts/angular/controllers/match.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function($scope, $window, $route, $location, $element, Match) {
4444
// console.log("matchscope", $scope);
4545
$scope.$watch('current_frame', function(v) {
4646
if(v) {
47-
$scope.current_time = Sc2.frameToTime(v);
47+
$scope.current_time = Sc2.frameToTime(v, $scope.match.expansion);
4848
$scope.time_has_been_set = true
4949
}
5050
});

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ gg.directive('armychart', ['$location', '$timeout', function($location, $timeout
115115
scope.freeze = function(frame, updateURL) {
116116
switch(typeof frame) {
117117
case "number": frame = frame; break;
118-
case "string": frame = Sc2.timeToFrame(frame); break;
118+
case "string": frame = Sc2.timeToFrame(frame, scope.match.expansion); break;
119119
default: return false;
120120
}
121121

@@ -162,7 +162,7 @@ gg.directive('armychart', ['$location', '$timeout', function($location, $timeout
162162
if(typeof e == "number") {
163163
frame = e;
164164
} else if(typeof e == "string") {
165-
frame = Sc2.timeToFrame(e);
165+
frame = Sc2.timeToFrame(e, scope.match.expansion);
166166
} else {
167167
// If clicked on the background, we have xAxis on the event, if clicked
168168
// on a series, we'll have the point.

app/assets/javascripts/angular/helpers/sc2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Sc2.timeToFrame = function(time) {
279279
if (expansion >= 2) {
280280
fps *= Sc2.LOTV_SPEEDUP;
281281
}
282-
frame = ((minutes*60) + seconds) * fps;
282+
frame = ((minutes*60) + seconds) * fps;
283283
return frame;
284284
}
285285

0 commit comments

Comments
 (0)