comparison mm7_4.cpp @ 141:cca78efb377e

Constants -> enums
author Nomad
date Tue, 12 Feb 2013 03:02:13 +0200
parents a8ec7e1e18b6
children 8ab4484c22e0 d92c78ab54fe
comparison
equal deleted inserted replaced
140:f4d7a9a8c363 141:cca78efb377e
1263 if ( v3 ) 1263 if ( v3 )
1264 { 1264 {
1265 do 1265 do
1266 { 1266 {
1267 v4 = *v3; 1267 v4 = *v3;
1268 if ( (v4 & 7) == 5 ) 1268 if ( (v4 & 7) == OBJECT_Decoration)
1269 { 1269 {
1270 v5 = &pLevelDecorations[(signed __int16)v4 >> 3]; 1270 v5 = &pLevelDecorations[(signed __int16)v4 >> 3];
1271 if ( !(v5->field_2 & 0x20) ) 1271 if ( !(v5->field_2 & 0x20) )
1272 { 1272 {
1273 v6 = &pDecorationList->pDecorations[v5->uDecorationDescID]; 1273 v6 = &pDecorationList->pDecorations[v5->uDecorationDescID];
3233 } 3233 }
3234 if ( pParty->bTurnBasedModeOn == 1 ) 3234 if ( pParty->bTurnBasedModeOn == 1 )
3235 { 3235 {
3236 if ( pTurnEngine->field_4 != 1 ) 3236 if ( pTurnEngine->field_4 != 1 )
3237 { 3237 {
3238 if ( (pTurnEngine->pQueue[0].uPackedID & 7) == 4 ) 3238 if ( (pTurnEngine->pQueue[0].uPackedID & 7) == OBJECT_Player)
3239 { 3239 {
3240 //v14 = 0; 3240 //v14 = 0;
3241 if ( pTurnEngine->uActorQueueSize > 0 ) 3241 if ( pTurnEngine->uActorQueueSize > 0 )
3242 { 3242 {
3243 //v15 = (char *)pTurnEngine->pQueue; 3243 //v15 = (char *)pTurnEngine->pQueue;
3244 for (uint i = 0; i < pTurnEngine->uActorQueueSize; ++i) 3244 for (uint i = 0; i < pTurnEngine->uActorQueueSize; ++i)
3245 { 3245 {
3246 auto pElem = pTurnEngine->pQueue + i; 3246 auto pElem = pTurnEngine->pQueue + i;
3247 3247
3248 if ( (pElem->uPackedID & 7) != 4 ) 3248 if ( (pElem->uPackedID & 7) != OBJECT_Player)
3249 break; 3249 break;
3250 v16 = dword_5079D0; 3250 v16 = dword_5079D0;
3251 if ( pParty->uFlags & 0x10 ) 3251 if ( pParty->uFlags & 0x10 )
3252 { 3252 {
3253 v16 = dword_5079CC; 3253 v16 = dword_5079CC;