From 02e803b311b944e31c30e133772b8c4c8dcd4f81 Mon Sep 17 00:00:00 2001 From: Frederik Eychenie Date: Sun, 27 Apr 2014 16:01:28 +0200 Subject: [PATCH] idiot fix ice biome support in system view --- src/main/webapp/static/js/systemview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/static/js/systemview.js b/src/main/webapp/static/js/systemview.js index d1a0097..2727ea0 100644 --- a/src/main/webapp/static/js/systemview.js +++ b/src/main/webapp/static/js/systemview.js @@ -11,7 +11,7 @@ planet.starting_planet = planet.starting_planet || false; //ensure field presence planet.required_thrust_to_move = planet.required_thrust_to_move || 0; //ensure field presence // --end compat fixes - if(planet.planet.temperature <= 33) planet.planet.biome = 'ice' + if(planet.planet.temperature <= 33 && planet.planet.biome == 'earth') planet.planet.biome = 'ice' planet.imagePath = imageBaseUrl + 'planets/' + planet.planet.biome + '.png'; planet.imageWidth = planet.planet.radius >= 1000 ? '200px' : Math.round(200 * planet.planet.radius / 1000) + 'px'; planet.imageOffset = planet.planet.radius < 420 ? Math.round(200 * (420 - planet.planet.radius)/2000) + 'px': '0';