From 9871c0b0731446f6c12137502153c24c9f1d9dfa Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 17 Sep 2015 11:20:10 +0200 Subject: Added CircleCI for stylechecking. This will allow us to remove the stylecheck from Travis builds, making them a bit faster, and having fast style checks --- src/Blocks/BlockPlant.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Blocks/BlockPlant.h') diff --git a/src/Blocks/BlockPlant.h b/src/Blocks/BlockPlant.h index 0e6aca7eb..0155dc466 100644 --- a/src/Blocks/BlockPlant.h +++ b/src/Blocks/BlockPlant.h @@ -49,13 +49,12 @@ protected: Light = Blocklight; } - // Return true if there is enough light - // Set m_ShouldDie if the base light amounts are not enough to sustain a plant + // Based on light levels, decide between growth, stay and death: if (Light > 8) { return paGrowth; } - else if (Blocklight < 9 && SkyLight < 9) + else if ((Blocklight < 9) && (SkyLight < 9)) { return paDeath; } -- cgit v1.2.3