Mercurial > mm7
diff LOD.cpp @ 568:6f7d936edc9b
SaveGame/LoadGame sorta works
author | Nomad |
---|---|
date | Tue, 05 Mar 2013 04:30:20 +0200 |
parents | 49158f2cc88d |
children | 0e368c04acfb |
line wrap: on
line diff
--- a/LOD.cpp Tue Mar 05 03:58:26 2013 +0200 +++ b/LOD.cpp Tue Mar 05 04:30:20 2013 +0200 @@ -1691,7 +1691,7 @@ if ( !this->pIOBuffer || !this->uIOBufferSize ) return 3; v7 = this->uNumSubIndices == 0; - v8 = this->uNumSubIndices != 0; // v8 = (this->uNumSubIndices & 0x80000000u) != 0; + v8 = false;//this->uNumSubIndices != 0; // v8 = (this->uNumSubIndices & 0x80000000u) != 0; v36 = 0; v34 = 0; if ( v8 | v7 ) @@ -1703,7 +1703,7 @@ while ( 1 ) { v9 = pDir; - v10 = _strcmpi((const char *)v4->pSubIndices + v35, (const char *)pDir); + v10 = _strcmpi(v4->pSubIndices[v5].pFilename + v35, pDir->pFilename); if ( v10 ) { if ( v10 > 0 ) @@ -1722,7 +1722,8 @@ v11 = v5 >= v4->uNumSubIndices; v8 = (v5 - v4->uNumSubIndices) != 0;//v8 = ((v5 - v4->uNumSubIndices) & 0x80000000u) != 0; v34 = v5; - if ( !(v8 ^ v11) ) + //if ( !(v8 ^ v11) ) + if (v5 >= v4->uNumSubIndices) goto LABEL_22; } v12 = pDir->uNumSubIndices;