summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-15 14:42:17 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-15 14:42:17 +0000
commit2a8f1dbee99e1b5a786ecaad12641ea8170169ca (patch)
tree05f067a65f7aef2051a52095908ff4777fb6e039
parent8363f54be1888024287c711b85fdd57352019c09 (diff)
downloadmarex-dev-2a8f1dbee99e1b5a786ecaad12641ea8170169ca.tar.gz
marex-dev-2a8f1dbee99e1b5a786ecaad12641ea8170169ca.tar.bz2
wobbly plugin: explicitly comparing boolean values to FALSE is dangerous...
git-svn-id: file:///beryl/trunk@4079 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r--beryl-plugins/src/wobbly.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 32e8427..f6f4c83 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -1914,7 +1914,7 @@ modelStepObject(CompWindow * window,
|| object->position.y > object->vertEdge.end)
findNextWestEdge(window, object);
- if (object->vertEdge.snapped == FALSE ||
+ if (!object->vertEdge.snapped ||
objectReleaseEdge(window, model, object, WEST))
{
object->position.x += object->velocity.x;
@@ -1952,7 +1952,7 @@ modelStepObject(CompWindow * window,
|| object->position.y > object->vertEdge.end)
findNextEastEdge(window, object);
- if (object->vertEdge.snapped == FALSE ||
+ if (!object->vertEdge.snapped ||
objectReleaseEdge(window, model, object, EAST))
{
object->position.x += object->velocity.x;
@@ -1993,7 +1993,7 @@ modelStepObject(CompWindow * window,
|| object->position.x > object->horzEdge.end)
findNextNorthEdge(window, object);
- if (object->horzEdge.snapped == FALSE ||
+ if (!object->horzEdge.snapped ||
objectReleaseEdge(window, model, object, NORTH))
{
object->position.y += object->velocity.y;
@@ -2031,7 +2031,7 @@ modelStepObject(CompWindow * window,
|| object->position.x > object->horzEdge.end)
findNextSouthEdge(window, object);
- if (object->horzEdge.snapped == FALSE ||
+ if (!object->horzEdge.snapped ||
objectReleaseEdge(window, model, object, SOUTH))
{
object->position.y += object->velocity.y;