1
0
forked from 0ad/0ad

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:
James Baillie 2011-07-03 08:46:30 +00:00
parent c9b2273532
commit b4d0c09569
2 changed files with 5 additions and 3 deletions

View File

@ -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,

View File

@ -219,8 +219,9 @@ 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,
"z": z,