From 43e13074978d9936f1abcdb666fed5f3f00b58a8 Mon Sep 17 00:00:00 2001 From: Martin Euzenat Date: Sat, 20 Jan 2024 01:09:23 -0500 Subject: [PATCH] =?UTF-8?q?"randomize=20fonctionne"=20parfaitement,=20"fil?= =?UTF-8?q?l"=20ne=20fait=20alterner=20que=20les=20colonnes=20et=20pas=20l?= =?UTF-8?q?es=20cases=20une=20apr=C3=A8s=20les=20autres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GPA675Lab1GOL/GOLTeamH.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GPA675Lab1GOL/GOLTeamH.cpp b/GPA675Lab1GOL/GOLTeamH.cpp index 88282fc..9689f93 100644 --- a/GPA675Lab1GOL/GOLTeamH.cpp +++ b/GPA675Lab1GOL/GOLTeamH.cpp @@ -338,6 +338,10 @@ bool GOLTeamH::setFromPattern(std::string const& pattern) //! \param color La nouvelle couleur de l'état. void GOLTeamH::setSolidColor(State state, Color const& color) { + if (state == State::alive) + mAliveColor = color; + else + mDeadColor = color; }