Skip to content

Commit

Permalink
Merge pull request #84 from mike-koch/bug-fix-ets2-game-name
Browse files Browse the repository at this point in the history
Fix Game Detection
  • Loading branch information
mike-koch committed Mar 5, 2016
2 parents 6d0a45e + 9ddb9a4 commit a44e940
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Funbit.Ets.Telemetry.Dashboard.prototype.filter = function (data) {
}

g_runningGame = data.game.gameName;
data.isEts2 = g_runningGame == 'ets2';
data.isEts2 = g_runningGame == 'ETS2';
data.isAts = !data.isEts2;

// Logic consistent between ETS2 and ATS
Expand Down Expand Up @@ -458,7 +458,7 @@ var g_translations;
var g_skinConfig;

// The current version of ets2-mobile-route-advisor
var g_currentVersion = '3.2.0';
var g_currentVersion = '3.2.1';

// The currently running game
var g_runningGame;
4 changes: 2 additions & 2 deletions js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function buildMap(target_element_id){
ol.proj.addProjection(projection);

// Adding a marker for the player position/rotation.
g_playerIcon = g_runningGame === 'ets2' ? new ol.style.Icon({
g_playerIcon = g_runningGame === 'ETS2' ? new ol.style.Icon({
anchor: [0.5, 39],
anchorXUnits: 'fraction',
anchorYUnits: 'pixels',
Expand Down Expand Up @@ -187,7 +187,7 @@ function buildMap(target_element_id){
}

function getMapTilesLayer(projection, tileGrid) {
if (g_runningGame === 'ets2') {
if (g_runningGame === 'ETS2') {
return new ol.layer.Tile({
extent: [0, 0, MAX_X, MAX_Y],
source: new ol.source.XYZ({
Expand Down

0 comments on commit a44e940

Please sign in to comment.