# HG changeset patch # User Ritor1 # Date 1364318338 -21600 # Node ID 35c31a49d9891b247973ed31a61fde3967a95f80 # Parent 7bb33867d2cb8071b52f3e49cf3886971c0da62b m diff -r 7bb33867d2cb -r 35c31a49d989 NPC.cpp --- a/NPC.cpp Tue Mar 26 00:09:21 2013 +0600 +++ b/NPC.cpp Tue Mar 26 23:18:58 2013 +0600 @@ -385,10 +385,10 @@ } while ((decode_step<78)&&!break_loop); } - for (i=0; i<78; ++i) + for ( i = 0; i < 77; ++i ) { pProfessionChance[i].uTotalprofChance=0; - for (int ii=1; ii<59; ++ii) + for ( int ii = 1; ii < 59; ++ii ) { pProfessionChance[i].uTotalprofChance+=pProfessionChance[i].professionChancePerArea[ii]; } diff -r 7bb33867d2cb -r 35c31a49d989 mm7_3.cpp --- a/mm7_3.cpp Tue Mar 26 00:09:21 2013 +0600 +++ b/mm7_3.cpp Tue Mar 26 23:18:58 2013 +0600 @@ -12652,7 +12652,7 @@ { pInString = (char *)ptr_F8B1E8; } - else if (v1 == 1) + else if (v1 == 1)//QuestNPCDialogue { if (pNPC->greet) { @@ -12662,7 +12662,7 @@ pInString = pNPCStats->pNPCGreetings[pNPC->greet - 1].pGreeting1; } } - else if (v1 == 2) + else if (v1 == 2)//HiredNPCDialogue { auto prof = pNPCStats->pProfessions + pNPC->uProfession - 1;