From 7ae2a4e35cffdb6d79cf378a6d2e976860a1cdf2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 23 Dec 2007 21:03:42 +0000 Subject: [PATCH] - got rid of a few warnings in sbarinfo.cpp. SVN r631 (trunk) --- src/g_shared/sbarinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/g_shared/sbarinfo.cpp b/src/g_shared/sbarinfo.cpp index b057234225..1d1752b115 100644 --- a/src/g_shared/sbarinfo.cpp +++ b/src/g_shared/sbarinfo.cpp @@ -1491,8 +1491,8 @@ private: case SBARINFO_DRAWBAR: { if(cmd.sprite == -1) break; //don't draw anything. - bool horizontal = ((cmd.special2 & DRAWBAR_HORIZONTAL)); - bool reverse = ((cmd.special2 & DRAWBAR_REVERSE)); + bool horizontal = !!((cmd.special2 & DRAWBAR_HORIZONTAL)); + bool reverse = !!((cmd.special2 & DRAWBAR_REVERSE)); int value = 0; int max = 0; if(cmd.flags == DRAWNUMBER_HEALTH) @@ -1637,8 +1637,8 @@ private: } case SBARINFO_DRAWSHADER: { - bool vertical = (cmd.flags & DRAWSHADER_VERTICAL); - bool reverse = (cmd.flags & DRAWSHADER_REVERSE); + bool vertical = !!(cmd.flags & DRAWSHADER_VERTICAL); + bool reverse = !!(cmd.flags & DRAWSHADER_REVERSE); FBarShader* shader = new FBarShader(); shader->PrepareShader(cmd.special, cmd.special2, vertical, reverse); screen->DrawTexture (shader, ST_X+cmd.x, ST_Y+cmd.y,