www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f8cd7a6169027327eb9c9e41715cb612598ba1c4
parent 2a9fae690f7ae53398d3852edca62b34bb775abf
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Thu, 19 Jan 2012 19:54:07 +0100

Réglage du nombre maximal d'étages dans rules/architecture/couleursDimensions.hh .

Diffstat:
Mrules/architecture/batiment.cpp | 3+--
Mrules/architecture/couleursDimensions.hh | 1+
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rules/architecture/batiment.cpp b/rules/architecture/batiment.cpp @@ -21,8 +21,7 @@ bool BatimentQuad_::split() { addChild(new BatimentQuad_(Quad(q[NW], n, s, q[SW]), true, QuadBool(qb[W],qb[N],false,qb[S]))); } else { float randEtages = floatInRange(seed, 2, 0.f, 1.f); - int maxEtages = 5; - int nbEtages = 1 + (int)(randEtages * randEtages * (maxEtages - 1)); + int nbEtages = 1 + (int)(randEtages * randEtages * (Dimensions::maxEtages - 1)); Quad q = c; //ch = ch.insetNESW(30); Quad qh; diff --git a/rules/architecture/couleursDimensions.hh b/rules/architecture/couleursDimensions.hh @@ -39,6 +39,7 @@ public: static const unsigned int largeurRoute = 200; static const unsigned int largeurTrottoir = 140; static const unsigned int hauteurEtage = 300; + static const unsigned int maxEtages = 5; static const unsigned int hauteurToit = 200; static const unsigned int hauteurTrottoir = 20; static const unsigned int hauteurMaxBatiment = hauteurTrottoir + hauteurEtage + hauteurToit;