Fix some MSVC warnings (part of patch #2909981)

svn-id: r46291
This commit is contained in:
Max Horn 2009-12-08 20:44:57 +00:00
parent 923cbff625
commit 5f178e8650
5 changed files with 8 additions and 8 deletions

View file

@ -815,7 +815,7 @@ void Draw::handleWinBorder(int16 id) {
}
int16 Draw::handleCurWin() {
int8 matchNum;
int8 matchNum = 0;
int16 bestMatch = -1;
warning("handleCurWin");

View file

@ -1606,8 +1606,8 @@ void Hotspots::evaluate() {
int16 Hotspots::findCursor(uint16 x, uint16 y) const {
int16 cursor = 0;
int16 deltax;
int16 deltay;
int16 deltax = 0;
int16 deltay = 0;
if ( _vm->getGameType() == kGameTypeFascination ) {
cursor = curWindow(deltax, deltay);

View file

@ -749,7 +749,7 @@ int16 CellGame::doGame(int8 color, int depth) {
const int8 depths[] = { 1, 1, 1, 2, 1, 1, 2, 2, 1, 2, 2, 2, 3, 2, 2, 3, 3, 2, 3, 3, 3 };
int16 CellGame::calcMove(int8 color, uint16 depth) {
int result;
int result = 0;
_flag1 = false;
++_moveCount;

View file

@ -355,7 +355,8 @@ void SciGuiText::Show(const char *text, int16 from, int16 len, GuiResourceId org
// Draws a text in rect.
void SciGuiText::Box(const char *text, int16 bshow, const Common::Rect &rect, GuiTextAlignment alignment, GuiResourceId fontId) {
int16 textWidth, textHeight, charCount, offset;
int16 textWidth, textHeight, charCount;
int16 offset = 0;
int16 hline = 0;
GuiResourceId orgFontId = GetFontId();
int16 orgPenColor = _gfx->_curPort->penClr;

View file

@ -955,10 +955,9 @@ void ResourceManager::readResourcePatches(ResourceSource *source) {
Common::String mask, name;
Common::ArchiveMemberList files;
int number;
int number = -1;
const char *szResType;
ResourceSource *psrcPatch;
bool bAdd;
for (int i = kResourceTypeView; i < kResourceTypeAudio36; i ++) {
files.clear();
@ -972,7 +971,7 @@ void ResourceManager::readResourcePatches(ResourceSource *source) {
mask += resourceTypeSuffixes[i];
SearchMan.listMatchingMembers(files, mask);
for (Common::ArchiveMemberList::const_iterator x = files.begin(); x != files.end(); x++) {
bAdd = false;
bool bAdd = false;
name = (*x)->getName();
// SCI1 scheme
if (isdigit(name[0])) {