Skip to content

Commit

Permalink
idiot fix ice biome support in system view
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Eychenie committed Apr 27, 2014
1 parent 96046f9 commit 02e803b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/static/js/systemview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 02e803b

Please sign in to comment.