diff options
author | shennetsind <ind@henn.et> | 2013-09-27 13:15:36 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-09-27 13:15:36 -0300 |
commit | a6e523c4768ab894231d342cc98e8818259625ae (patch) | |
tree | 1d94d4257fd408b38e5b34dfbca3d43df771c172 /src/map/pc.c | |
parent | 4a6a25f6675bd11666b235b97d59f5035a249295 (diff) | |
download | hercules-a6e523c4768ab894231d342cc98e8818259625ae.tar.gz hercules-a6e523c4768ab894231d342cc98e8818259625ae.tar.bz2 hercules-a6e523c4768ab894231d342cc98e8818259625ae.tar.xz hercules-a6e523c4768ab894231d342cc98e8818259625ae.zip |
HPM: Battle.c Completed
Moved missing vars and declarations of interest into the interface
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 338459d16..d11eb7e75 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -9994,7 +9994,7 @@ int pc_readdb(void) { for(i=0;i<4;i++) for(j=0;j<ELE_MAX;j++) for(k=0;k<ELE_MAX;k++) - attr_fix_table[i][j][k]=100; + battle->attr_fix_table[i][j][k]=100; sprintf(line, "%s/"DBPATH"attr_fix.txt", map->db_path); @@ -10029,9 +10029,9 @@ int pc_readdb(void) { for(j=0,p=line;j<n && j<ELE_MAX && p;j++){ while(*p==32 && *p>0) p++; - attr_fix_table[lv-1][i][j]=atoi(p); - if(battle_config.attr_recover == 0 && attr_fix_table[lv-1][i][j] < 0) - attr_fix_table[lv-1][i][j] = 0; + battle->attr_fix_table[lv-1][i][j]=atoi(p); + if(battle_config.attr_recover == 0 && battle->attr_fix_table[lv-1][i][j] < 0) + battle->attr_fix_table[lv-1][i][j] = 0; p=strchr(p,','); if(p) *p++=0; } |