Mercurial > mm7
changeset 292:5586bb4e8395
build fix
author | Gloval |
---|---|
date | Tue, 19 Feb 2013 00:37:12 +0400 |
parents | 0ea5fbd16edb |
children | 27670273a6ff |
files | NPC.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/NPC.cpp Tue Feb 19 00:34:15 2013 +0400 +++ b/NPC.cpp Tue Feb 19 00:37:12 2013 +0400 @@ -525,7 +525,7 @@ //----- (0047732C) -------------------------------------------------------- void NPCStats::InitializeAdditionalNPCs(NPCData *pNPCDataBuff, int npc_uid, int uLocation2D, int uMapId) { - + int rep_gen; int uNPCSex; // esi@1 int uGeneratedPortret; // ecx@23 int test_prof_summ; // ecx@37 @@ -549,7 +549,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - , 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 0, 0, 0}; + 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 2, 0, 0, 0}; unsigned __int8 seed = (unsigned __int8)((double)(npc_uid - 1) * 0.33333334); @@ -632,15 +632,15 @@ pNPCDataBuff->uFlags = 0; pNPCDataBuff->fame = 0; //generate reputation - v13 = rand() % 100 + 1; + rep_gen = rand() % 100 + 1; - if ( v13 >= 60 ) + if ( rep_gen >= 60 ) { - if ( v13 >= 90 ) + if ( rep_gen >= 90 ) { - if ( v13 >= 95 ) + if ( rep_gen >= 95 ) { - if ( v13 >= 98 ) + if ( rep_gen >= 98 ) pNPCDataBuff->rep = -600; else pNPCDataBuff->rep = 400;