comparison mm7_2.cpp @ 291:0ea5fbd16edb

NPC mostly done
author Gloval
date Tue, 19 Feb 2013 00:34:15 +0400
parents 1f0af5cac2dd
children 27670273a6ff
comparison
equal deleted inserted replaced
290:4776715a964b 291:0ea5fbd16edb
11273 pGameLoadingUI_ProgressBar->Progress(); 11273 pGameLoadingUI_ProgressBar->Progress();
11274 pParty->uFlags |= 2u; 11274 pParty->uFlags |= 2u;
11275 pParty->field_7B5_in_arena_quest = 0; 11275 pParty->field_7B5_in_arena_quest = 0;
11276 //v1 = 0; 11276 //v1 = 0;
11277 dword_5C6DF8 = 1; 11277 dword_5C6DF8 = 1;
11278 pNPCStats->field_17FC0 = 0; 11278 pNPCStats->uNewlNPCBufPos = 0;
11279 v19 = pMapStats->GetMapInfo(pCurrentMapName); 11279 v19 = pMapStats->GetMapInfo(pCurrentMapName);
11280 11280
11281 //v15 = 0; 11281 //v15 = 0;
11282 for (uint i = 0; i < uNumActors; ++i) 11282 for (uint i = 0; i < uNumActors; ++i)
11283 //if ( (signed int)uNumActors > 0 ) 11283 //if ( (signed int)uNumActors > 0 )
11308 } 11308 }
11309 if ( pActor->uNPC_ID > 0 && pActor->uNPC_ID < 5000 ) 11309 if ( pActor->uNPC_ID > 0 && pActor->uNPC_ID < 5000 )
11310 continue; 11310 continue;
11311 if ( v17 ) 11311 if ( v17 )
11312 { 11312 {
11313 pNPCStats->InitializeAdditionalNPCs(&pNPCStats->array_13EF4[pNPCStats->field_17FC0], v3, 0, v19); 11313 pNPCStats->InitializeAdditionalNPCs(&pNPCStats->pAdditionalNPC[pNPCStats->uNewlNPCBufPos], v3, 0, v19);
11314 v14 = LOWORD(pNPCStats->field_17FC0) + 5000; 11314 v14 = LOWORD(pNPCStats->uNewlNPCBufPos) + 5000;
11315 ++pNPCStats->field_17FC0; 11315 ++pNPCStats->uNewlNPCBufPos;
11316 pActor->uNPC_ID = v14; 11316 pActor->uNPC_ID = v14;
11317 continue; 11317 continue;
11318 } 11318 }
11319 LABEL_12: 11319 LABEL_12:
11320 pActor->uNPC_ID = 0; 11320 pActor->uNPC_ID = 0;