[Scummvm-cvs-logs] SF.net SVN: scummvm:[34830] scummvm/trunk/engines/sword1/sword1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Oct 20 23:55:20 CEST 2008


Revision: 34830
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34830&view=rev
Author:   lordhoto
Date:     2008-10-20 21:55:20 +0000 (Mon, 20 Oct 2008)

Log Message:
-----------
Formatting.

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/sword1.cpp

Modified: scummvm/trunk/engines/sword1/sword1.cpp
===================================================================
--- scummvm/trunk/engines/sword1/sword1.cpp	2008-10-20 21:47:46 UTC (rev 34829)
+++ scummvm/trunk/engines/sword1/sword1.cpp	2008-10-20 21:55:20 UTC (rev 34830)
@@ -222,24 +222,23 @@
 			uint pos = 0;
 			do {
 				stop = in->readByte();
-				if (pos < (sizeof(saveDesc) - 1)) { 	
-					if ((stop == 10) || (stop == 255) || (in->eos())) {
+				if (pos < (sizeof(saveDesc) - 1)) {
+					if ((stop == 10) || (stop == 255) || (in->eos()))
 						saveDesc[pos++] = '\0';
-					}
-					else if (stop >= 32) {
+					else if (stop >= 32)
 						saveDesc[pos++] = stop;
-					}
 				}
 			} while ((stop != 10) && (stop != 255) && (!in->eos()));
+
 			if (saveDesc[0] != 0) {
 				saveList.push_back(SaveStateDescriptor(slotNum, saveDesc, *file));
 				file++;
 			}
 		} while ((stop != 255) && (!in->eos()));
 	}
-	
+
 	delete in;
-		
+
 	return saveList;
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list