Skip to content

Commit

Permalink
PRINCE: Cleaning up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslw committed Jun 22, 2014
1 parent e366a21 commit 5556726
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion engines/prince/archive.cpp
Expand Up @@ -51,7 +51,7 @@ bool PtcArchive::open(const Common::String &filename) {
if (!_stream)
return false;

uint32 magic = _stream->readUint32LE();
_stream->readUint32LE(); // magic
uint32 fileTableOffset = _stream->readUint32LE() ^ 0x4D4F4B2D; // MOK-
uint32 fileTableSize = _stream->readUint32LE() ^ 0x534F4654; // SOFT

Expand Down
6 changes: 3 additions & 3 deletions engines/prince/debugger.cpp
Expand Up @@ -78,7 +78,7 @@ bool Debugger::Cmd_SetFlag(int argc, const char **argv) {
return true;
}

int flagNum = strToInt(argv[1]);
//int flagNum = strToInt(argv[1]);
//g_globals->setFlag(flagNum);
return true;
}
Expand All @@ -93,7 +93,7 @@ bool Debugger::Cmd_GetFlag(int argc, const char **argv) {
return true;
}

int flagNum = strToInt(argv[1]);
//int flagNum = strToInt(argv[1]);
//DebugPrintf("Value: %d\n", g_globals->getFlag(flagNum));
return true;
}
Expand All @@ -108,7 +108,7 @@ bool Debugger::Cmd_ClearFlag(int argc, const char **argv) {
return true;
}

int flagNum = strToInt(argv[1]);
//int flagNum = strToInt(argv[1]);
//g_globals->clearFlag(flagNum);
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions engines/prince/hero.cpp
Expand Up @@ -392,7 +392,7 @@ void Hero::showHeroShadow(Graphics::Surface *heroFrame) {
int shadBitMaskCopyTrans = shadBitMask;
int shadBitAddrCopyTrans = shadBitAddr;
//ct_loop:
for (int j = 0; j < ct_loop; j++) {
for (int l = 0; l < ct_loop; l++) {
shadZoomX -= 100;
if (shadZoomX < 0 && _scaleValue != 10000) {
shadZoomX += _scaleValue;
Expand Down Expand Up @@ -449,7 +449,7 @@ void Hero::showHeroShadow(Graphics::Surface *heroFrame) {
int backgroundDiffWall = 0;
int shadowHeroXWall = 0;
//ct_loop:
for (int j = 0; j < ct_loop; j++) {
for (int m = 0; m < ct_loop; m++) {
shadZoomX -= 100;
if (shadZoomX < 0 && _scaleValue != 10000) {
shadZoomX += _scaleValue;
Expand Down
1 change: 1 addition & 0 deletions engines/prince/mob.cpp
Expand Up @@ -97,6 +97,7 @@ uint16 Mob::getData(AttrId dataId) {
return _examPosition.y;
default:
assert(false);
return 0;
}
}

Expand Down
4 changes: 2 additions & 2 deletions engines/prince/prince.cpp
Expand Up @@ -115,7 +115,7 @@ PrinceEngine::~PrinceEngine() {
}
_objList.clear();

for (uint32 i = 0; i < _backAnimList.size(); i++) {
for (uint i = 0; i < _backAnimList.size(); i++) {
delete _backAnimList[i]._animData;
delete _backAnimList[i]._shadowData;
}
Expand Down Expand Up @@ -727,7 +727,7 @@ void PrinceEngine::drawScreen() {
}
}
*/
for (int i = 0; i < _backAnimList.size() ; i++) {
for (uint i = 0; i < _backAnimList.size() ; i++) {
Graphics::Surface *backAnimSurface = _backAnimList[i]._animData->getFrame(testAnimFrame);
_graph->drawTransparent(_backAnimList[i]._x, _backAnimList[i]._y, backAnimSurface); // out of range now - crash .exe
backAnimSurface->free();
Expand Down

0 comments on commit 5556726

Please sign in to comment.