From dfa6107f2c4816f2f7d1ec994bfadd0330a99159 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Fri, 11 Nov 2005 01:32:53 +0000 Subject: [PATCH] Fix warnings. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1985 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/video/videodec.c | 8 ++++---- sc2/src/sc2code/planets/solarsys.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sc2/src/sc2code/libs/video/videodec.c b/sc2/src/sc2code/libs/video/videodec.c index 64d013b7f..377633c56 100644 --- a/sc2/src/sc2code/libs/video/videodec.c +++ b/sc2/src/sc2code/libs/video/videodec.c @@ -20,7 +20,7 @@ #define MAX_REG_DECODERS 31 -static bool vd_inited = 0; +static bool vd_inited = false; static TFB_PixelFormat vd_vidfmt; static int vd_flags = 0; @@ -53,7 +53,7 @@ VideoDecoder_Init (int flags, int depth, uint32 Rmask, uint32 Gmask, { TFB_RegVideoDecoder* info; - vd_inited = 0; + vd_inited = false; if (depth < 15 || depth > 32) { @@ -94,7 +94,7 @@ VideoDecoder_Init (int flags, int depth, uint32 Rmask, uint32 Gmask, } vd_flags = flags; - vd_inited = 1; + vd_inited = true; return true; } @@ -118,7 +118,7 @@ VideoDecoder_Uninit (void) } } - vd_inited = 0; + vd_inited = false; } TFB_RegVideoDecoder* diff --git a/sc2/src/sc2code/planets/solarsys.c b/sc2/src/sc2code/planets/solarsys.c index 666ad4261..2f1d03b9c 100644 --- a/sc2/src/sc2code/planets/solarsys.c +++ b/sc2/src/sc2code/planets/solarsys.c @@ -1208,8 +1208,8 @@ IP_frame (void) if (pSolarSysState->MenuState.CurState || pSolarSysState->MenuState.Initialized != 1) { - cancel = 0; - select = 0; + cancel = FALSE; + select = FALSE; } else {