From 7e5dea4f5efefca7d59ab092be30fc3ef2af9ef8 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 7 Jan 2014 07:46:14 +0100 Subject: VOYEUR: Silent 2 CppCheck warnings by differencing if/else branches --- engines/voyeur/files.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/voyeur') diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp index 2403898e6f..4c0ae1b4f2 100644 --- a/engines/voyeur/files.cpp +++ b/engines/voyeur/files.cpp @@ -743,9 +743,9 @@ PictureResource::PictureResource(BoltFilesState &state, const byte *src) { int nbytes = _bounds.width() * _bounds.height(); if (_flags & PICFLAG_20) { if (_flags & (PICFLAG_80 | PICFLAG_40)) { - error("TODO: sInitPic"); + error("TODO: sInitPic - Case 40 | 80"); } else { - error("TODO: sInitPic"); + error("TODO: sInitPic - Case !(40 | 80)"); } } else if (_flags & PICFLAG_8) { int mode = 0; @@ -781,8 +781,10 @@ PictureResource::PictureResource(BoltFilesState &state, const byte *src) { if (_flags & PICFLAG_10) { // TODO: Figure out what it's doing. Looks like a direct clearing // of the screen directly + error("TODO: sInitPic - Case 10"); } else { // TODO: Figure out direct screen loading + error("TODO: sInitPic - Case !10"); } } else { if (_flags & PICFLAG_1000) { -- cgit v1.2.3