Mercurial > mm7
diff Game.cpp @ 1063:bcebd491e8fa
some cleaning
author | zipi |
---|---|
date | Fri, 24 May 2013 00:58:19 +0100 |
parents | 39f42990698f |
children | c59ac5ea63f5 c40d40027b77 |
line wrap: on
line diff
--- a/Game.cpp Fri May 24 00:44:51 2013 +0100 +++ b/Game.cpp Fri May 24 00:58:19 2013 +0100 @@ -265,7 +265,7 @@ //Render *v2; // edi@7 //signed int v3; // esi@7 signed int pNewNPCsCount; // ecx@58 - char *pFlags; // eax@59 + NPCData *pNPC; // eax@59 Player *pPlayer; // esi@65 //OtherOverlay *pOtherOverlay; // esi@67 //signed int v8; // edi@67 @@ -442,13 +442,13 @@ pNewNPCsCount = 0; if ( (signed int)pNPCStats->uNumNewNPCs > 0 ) { - pFlags = (char *)&pNPCStats->pNewNPCData[0].uFlags; + pNPC = pNPCStats->pNewNPCData; do { - if ( *((int *)pFlags + 6) ) - *pFlags &= 0x7Fu; + if ( pNPC->field_24 ) + pNPC->uFlags &= 0xFFFFFF7Fu; ++pNewNPCsCount; - pFlags += 76; + ++pNPC; } while ( pNewNPCsCount < (signed int)pNPCStats->uNumNewNPCs ); }