X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ac8bd7b5347c31a0f4ff53aa0a3fcaa54ecb5ca..d73ae65656793cc988fd95a56beb02a82fd1736b:/demos/life/game.cpp diff --git a/demos/life/game.cpp b/demos/life/game.cpp index 52c5111584..93bc26c418 100644 --- a/demos/life/game.cpp +++ b/demos/life/game.cpp @@ -75,9 +75,9 @@ public: bool LifeCellBox::IsAlive(int dx, int dy) const { if (dy > 3) - return (bool)(m_live2 & 1 << ((dy - 4) * 8 + dx)); + return (m_live2 & 1 << ((dy - 4) * 8 + dx)) ? true : false ; else - return (bool)(m_live1 & 1 << ((dy) * 8 + dx)); + return (m_live1 & 1 << ((dy) * 8 + dx)) ? true : false ; } // SetCell: