Mercurial > mm7
comparison NPC.cpp @ 825:35c31a49d989
m
author | Ritor1 |
---|---|
date | Tue, 26 Mar 2013 23:18:58 +0600 |
parents | d170f23f70d1 |
children | c0d0656aa662 |
comparison
equal
deleted
inserted
replaced
809:7bb33867d2cb | 825:35c31a49d989 |
---|---|
383 ++decode_step; | 383 ++decode_step; |
384 test_string=tmp_pos+1; | 384 test_string=tmp_pos+1; |
385 } while ((decode_step<78)&&!break_loop); | 385 } while ((decode_step<78)&&!break_loop); |
386 } | 386 } |
387 | 387 |
388 for (i=0; i<78; ++i) | 388 for ( i = 0; i < 77; ++i ) |
389 { | 389 { |
390 pProfessionChance[i].uTotalprofChance=0; | 390 pProfessionChance[i].uTotalprofChance=0; |
391 for (int ii=1; ii<59; ++ii) | 391 for ( int ii = 1; ii < 59; ++ii ) |
392 { | 392 { |
393 pProfessionChance[i].uTotalprofChance+=pProfessionChance[i].professionChancePerArea[ii]; | 393 pProfessionChance[i].uTotalprofChance+=pProfessionChance[i].professionChancePerArea[ii]; |
394 } | 394 } |
395 pProfessionChance[i].professionChancePerArea[0]=0; | 395 pProfessionChance[i].professionChancePerArea[0]=0; |
396 pProfessionChance[i].professionChancePerArea[59]=0; | 396 pProfessionChance[i].professionChancePerArea[59]=0; |