[Scummvm-cvs-logs] CVS: scummvm/sky compact.cpp,1.33,1.34

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Fri Jan 28 02:42:03 CET 2005


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5476

Modified Files:
	compact.cpp 
Log Message:
Fix warning introduced by previous commit.


Index: compact.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/compact.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- compact.cpp	27 Jan 2005 21:34:21 -0000	1.33
+++ compact.cpp	28 Jan 2005 10:40:59 -0000	1.34
@@ -126,7 +126,7 @@
 		error("Unable to find \"sky.cpt\" file\nPlease download it from www.scummvm.org");
 	}
 		
-    uint16 fileVersion = _cptFile->readUint16LE();
+	uint16 fileVersion = _cptFile->readUint16LE();
 	if (fileVersion != 0)
 		error("unknown \"sky.cpt\" version");
 
@@ -204,7 +204,7 @@
 	_cptFile->read(diffBuf, diffSize * sizeof(uint16));
 	if (SkyEngine::_systemVars.gameVersion == 288) {
 		uint16 *diffPos = diffBuf;
-		for (uint16 cnt = 0; cnt < numDiffs; cnt++) {
+		for (cnt = 0; cnt < numDiffs; cnt++) {
 			uint16 cptId = READ_LE_UINT16(diffPos++);
 			uint16 *rawCpt = (uint16*)fetchCpt(cptId);
 			rawCpt += READ_LE_UINT16(diffPos++);
@@ -221,7 +221,7 @@
 	_saveIds = (uint16*)malloc(_numSaveIds * sizeof(uint16));
 	_cptFile->read(_saveIds, _numSaveIds * sizeof(uint16));
 	for (cnt = 0; cnt < _numSaveIds; cnt++)
-        _saveIds[cnt] = FROM_LE_16(_saveIds[cnt]);
+		_saveIds[cnt] = FROM_LE_16(_saveIds[cnt]);
 	_resetDataPos = _cptFile->pos();
 }
 





More information about the Scummvm-git-logs mailing list