Building directions now 100% random. Can set it to a specific angle if we'd prefer, but someone needs to tell me what.
This was SVN commit r9749.
This commit is contained in:
parent
c9b2273532
commit
b4d0c09569
@ -209,7 +209,8 @@ var BuildingConstructionPlan = Class({
|
||||
// Engine.DumpImage("tiles2.png", friendlyTiles, map.width, map.height, 256);
|
||||
|
||||
// Randomise the angle a little, to look less artificial
|
||||
var angle = Math.PI + (Math.random()*2-1) * Math.PI/24;
|
||||
//var angle = Math.PI + (Math.random()*2-1) * Math.PI/24;
|
||||
var angle = Math.random()* 2 * Math.PI;
|
||||
|
||||
return {
|
||||
"x": x,
|
||||
|
@ -219,7 +219,8 @@ var BuildingConstructionPlanEcon = Class({
|
||||
// Engine.DumpImage("tiles2.png", friendlyTiles, map.width, map.height, 256);
|
||||
|
||||
// Randomise the angle a little, to look less artificial
|
||||
var angle = Math.PI + (Math.random()*2-1) * Math.PI/24;
|
||||
//var angle = Math.PI + (Math.random()*2-1) * Math.PI/24;
|
||||
var angle = Math.random()* 2 * Math.PI;
|
||||
|
||||
return {
|
||||
"x": x,
|
||||
|
Loading…
Reference in New Issue
Block a user