Skip to content

Commit

Permalink
Bug Fixes:
Browse files Browse the repository at this point in the history
- 'hp_rate' and 'sp_rate' config aren't working. http://rathena.org/board/tracker/issue-8742-max-hpsp-battleconf-not-working/
- Mercenary DB that aren't being read properly whic also happens for Homunculus DB. http://rathena.org/board/tracker/issue-8761-mercenary-db-import-folder-issue/
- Fixed Elemental DBs that aren't being imported yet. (also changed to sv_readdb)

Rebellion Skill Updates:
- Some updates according to kRO updates on http://forums.irowiki.org/showpost.php?p=1364894&postcount=579, http://forums.irowiki.org/showpost.php?p=1388802&postcount=981, and http://forums.irowiki.org/showpost.php?p=1389627&postcount=1008
- Partial merge from idAthena.
- Using 0x107 as temporary marker on mini-map for Crimson Marker target.
- Some stuffs maybe still wrong, feel free to report/fix it.
- Thank people on those links, Ziu, and idAthena.

Misc changes:
- Changed some function names for homunculus.c/h with prefix hom_* and mercenary.c/h with prefix mercenary_*
- Change unnecessary 'int' return value tos 'void'

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
  • Loading branch information
cydh committed Mar 13, 2014
1 parent bebfb06 commit dd67f9d
Show file tree
Hide file tree
Showing 41 changed files with 986 additions and 759 deletions.
10 changes: 5 additions & 5 deletions db/re/skill_cast_db.txt
Expand Up @@ -1643,15 +1643,15 @@
//-- RL_MASS_SPIRAL
2553,0,1000,0,0,30000,1000,-1
//-- RL_BANISHING_BUSTER
2554,0,1000,0,0,0,1500,-1
2554,3000:2500:2000:1500:1000,1000,0,0,0,1500,-1
//-- RL_B_TRAP
2555,0,0,0,10000:11000:12000:13000:14000,0,2000,-1
//-- RL_FLICKER
2556,0,500,0,0,0,2000,-1
//-- RL_S_STORM
2557,0,1000,0,0,0,1500,-1
2557,3000:2500:2000:1500:1000,1000,0,0,0,2000,-1
//-- RL_E_CHAIN
2558,0,500,0,30000:45000:60000:75000:90000:105000:120000:135000:150000:165000,0,5000,-1
2558,0,500,0,45000:60000:75000:90000:105000:120000:135000:150000:165000:180000,0,5000,-1
//-- RL_QD_SHOT
2559,0,1000,0,1500,0,5000,-1
//-- RL_C_MARKER
Expand All @@ -1673,9 +1673,9 @@
//-- RL_HEAT_BARREL
2568,0,1000,0,60000,10000,10000,-1
//-- RL_AM_BLAST
2569,0,1500,0,0,12000:14000:16000:18000:20000,3000,-1
2569,2000,1500,0,0,6000:7000:8000:9000:10000,1000,-1
//-- RL_SLUGSHOT
2570,0,1000,0,0,10000,1500,-1
2570,5000:6000:7000:8000:9000,1000,0,0,10000,1500,1000
//-- RL_HAMMER_OF_GOD
2571,0,1000,0,0,3000:3000:4000:4000:5000,3000,-1
//-- RL_R_TRIP_PLUSATK
Expand Down
8 changes: 4 additions & 4 deletions db/re/skill_db.txt
Expand Up @@ -1234,19 +1234,19 @@
2552,0,6,4,0,0x1,0,1,1,no,0,0,0,none,0,0x0, RL_RICHS_COIN,Rich's Coin
2553,15,6,1,-1,0,0,5,1,no,0,0,0,weapon,0,0x0, RL_MASS_SPIRAL,Mass Spiral
2554,9,6,1,-1,0x2,2,5,1,no,0,0,0,weapon,0,0x0, RL_BANISHING_BUSTER,Banishing Buster
2555,3,6,2,0,0x1,1,5,1,no,0,0,1,misc,0,0x0, RL_B_TRAP,Bind Trap
2555,3,6,2,0,0x1,1,5,1,no,0,0,3,misc,0,0x0, RL_B_TRAP,Bind Trap
2556,0,6,4,0,0x3,-1,1,1,no,0,0,0,none,0,0x0, RL_FLICKER,Flicker
2557,9,6,1,-1,0x2,2,5,1,no,0,0,0,weapon,0,0x0, RL_S_STORM,Shatter Storm
2558,0,6,4,0,0x1,0,10,1,no,0,0,0,none,0,0x0, RL_E_CHAIN,Eternal Chain
2559,-9,6,4,-1,0x3,21,1,1,no,0,0x0,0,weapon,0,0x0, RL_QD_SHOT,Quick Draw Shot
2560,11,6,1,0,0x1,0,1,1,no,0,0,3,none,0,0x0, RL_C_MARKER,Crimson Marker
2561,0,6,4,-1,0x2,3,5,1,no,0,0,0,weapon,0,0x0, RL_FIREDANCE,Fire Dance
2561,0,6,4,-1,0x2,2,5,1,no,0,0,0,weapon,0,0x0, RL_FIREDANCE,Fire Dance
2562,7:8:9:10:11,6,1,-1,0x2,2,5,1,no,0,0,0,weapon,0,0x0, RL_H_MINE,Howling Mine
2563,0,6,4,0,0x1,0,5,1,no,0,0,0,none,0,0x0, RL_P_ALTER,Platinum Alter
2564,9,6,2,0,0x1,0,5,1,no,0,0,0,none,0,0x0, RL_FALLEN_ANGEL,Fallen Angel
2565,0,6,4,-1,0x2,2:2:2:2:3,5,1,no,0,0,0,weapon,3,0x0, RL_R_TRIP,Round Trip
2565,0,6,4,-1,0x2,3:3:4:5:6,5,1,no,0,0,0,weapon,3,0x0, RL_R_TRIP,Round Trip
2566,0,6,4,-1,0x3,-1,5,1,no,0,0,0,weapon,0,0x0, RL_D_TAIL,Dragon Tail
2567,3,6,1,-1,0x2,5,5,1,no,0,0,0,weapon,0,0, RL_FIRE_RAIN,Fire Rain
2567,9,6,2,-1,0x2,1,5,1,no,0,0,0,weapon,0,0, RL_FIRE_RAIN,Fire Rain
2568,0,6,4,0,0x1,0,5,1,no,0,0,0,none,0,0x0, RL_HEAT_BARREL,Heat Barrel
2569,9,6,1,-1,0,0,5,1,no,0,0,0,weapon,0,0x0, RL_AM_BLAST,Anti-Material Blast
2570,9,6,1,-1,0,0,5,1,no,0,0,0,weapon,0,0x0, RL_SLUGSHOT,Slug Shot
Expand Down
10 changes: 5 additions & 5 deletions db/re/skill_require_db.txt
Expand Up @@ -901,16 +901,16 @@
2559,0,0,5,0,0,0,17:18:19:20:21,3:4:5,1,none,SC_QD_SHOT_READY,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_QD_SHOT#Quick Draw Shot#
2560,0,0,10,0,0,0,17:18:19:20:21,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_C_MARKER#Crimson Marker#
2561,0,0,10:15:20:25:30,0,0,0,17,3,5,none,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_FIREDANCE#Fire Dance#
2562,0,0,45:50:55:60:65,0,0,0,21,0,0,none,0,0,7664,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_H_MINE#Howling Mine#
2563,0,0,20:24:28:32:36,0,0,0,99,0,0,none,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13201 //RL_P_ALTER#Platinum Alter#
2564,0,0,90,0,0,0,17,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_FALLEN_ANGEL#Fallen Angel#
2565,0,0,40:45:50:55:60,0,0,0,19,3,5,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_R_TRIP#Round Trip#
2562,0,0,45:50:55:60:65,0,0,0,21,0,0,none,0,1,7664,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_H_MINE#Howling Mine#
2563,0,0,20:24:28:32:36,0,0,0,99,0,0,none,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_P_ALTER#Platinum Alter#
2564,0,0,10,0,0,0,17,0,0,none,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_FALLEN_ANGEL#Fallen Angel#
2565,0,0,40:45:50:55:60,0,0,0,19,3,5,none,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_R_TRIP#Round Trip#
2566,0,0,60:70:80:90:100,0,0,0,21,5,1,none,0,0,7665,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_D_TAIL#Dragon Tail#
2567,0,0,70,0,0,0,19,3,10,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_FIRE_RAIN#Fire Rain#
2568,0,0,30:40:50:60:70,0,0,0,99,0,0,none,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_HEAT_BARREL#Heat Barrel#
2569,0,0,80:84:88:92:96,0,0,0,17:18:19:20:21,0,0,none,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_AM_BLAST#Anti-Material Blast#
2570,0,0,55:60:65:70:75,0,0,0,20,3,1,none,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_SLUGSHOT#Slug Shot#
2571,0,0,70:80:90:100:110,0,0,0,18,3,1,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_HAMMER_OF_GOD#Hammer of God#
2571,0,0,70:80:90:100:110,0,0,0,18,3,0,none,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_HAMMER_OF_GOD#Hammer of God#
//2572,0,0,1,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_R_TRIP_PLUSATK#Round Trip Plus Attack#
//2573,0,0,1,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_B_FLICKER_ATK#Bind Flicker Attack#
//2574,0,0,1,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //RL_GLITTERING_GREED_ATK#Flip The Coin Greed Attack#
Expand Down
4 changes: 2 additions & 2 deletions db/re/skill_unit_db.txt
Expand Up @@ -157,8 +157,8 @@
2488,0xe9, , 0, 2, 500,enemy, 0x000 //GN_FIRE_EXPANSION_TEAR_GAS
2490,0xea, , 0, 1,1000,enemy, 0x002 //GN_HELLS_PLANT

2555,0x104, , 0, 1:2:2:3:3,500,enemy,0x006 //RL_B_TRAP
2567,0x105, , 2, 2,1000,enemy, 0x0 //RL_FIRE_RAIN
2555,0x104, , 0, 1:2:2:3:3,500,enemy,0x6 //RL_B_TRAP
2567,0x105, , -1, 0,1000,enemy, 0x98 //RL_FIRE_RAIN

3006,0x86, , 0, 2,1000,enemy, 0x018 //KO_BAKURETSU
3008,0x86, , 0, 2,1000,enemy, 0x018 //KO_MUCHANAGE
Expand Down
36 changes: 18 additions & 18 deletions src/map/atcommand.c
Expand Up @@ -3687,16 +3687,16 @@ ACMD_FUNC(reload) {
} else if (strstr(command, "mobdb") || strncmp(message, "mobdb", 3) == 0) {
mob_reload();
read_petdb();
merc_reload();
read_mercenarydb();
read_mercenary_skilldb();
hom_reload();
mercenary_readdb();
mercenary_read_skilldb();
reload_elementaldb();
clif_displaymessage(fd, msg_txt(sd,98)); // Monster database has been reloaded.
} else if (strstr(command, "skilldb") || strncmp(message, "skilldb", 4) == 0) {
skill_reload();
merc_skill_reload();
hom_reload_skill();
reload_elemental_skilldb();
read_mercenary_skilldb();
mercenary_read_skilldb();
clif_displaymessage(fd, msg_txt(sd,99)); // Skill database has been reloaded.
} else if (strstr(command, "atcommand") || strncmp(message, "atcommand", 4) == 0) {
config_t run_test;
Expand Down Expand Up @@ -5522,7 +5522,7 @@ ACMD_FUNC(useskill)
}

if (skill_id >= HM_SKILLBASE && skill_id < HM_SKILLBASE+MAX_HOMUNSKILL
&& sd->hd && merc_is_hom_active(sd->hd)) // (If used with @useskill, put the homunc as dest)
&& sd->hd && hom_is_active(sd->hd)) // (If used with @useskill, put the homunc as dest)
bl = &sd->hd->bl;
else
bl = &sd->bl;
Expand Down Expand Up @@ -7132,7 +7132,7 @@ ACMD_FUNC(homlevel)
return -1;
}

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand All @@ -7141,7 +7141,7 @@ ACMD_FUNC(homlevel)

for (i = 1; i <= level && hd->exp_next; i++){
hd->homunculus.exp += hd->exp_next;
if( !merc_hom_levelup(hd) ){
if( !hom_levelup(hd) ){
break;
}
}
Expand All @@ -7158,12 +7158,12 @@ ACMD_FUNC(homevolution)
{
nullpo_retr(-1, sd);

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}

if ( !merc_hom_evolution(sd->hd) ) {
if ( !hom_evolution(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1255)); // Your homunculus doesn't evolve.
return -1;
}
Expand All @@ -7176,7 +7176,7 @@ ACMD_FUNC(hommutate)
int homun_id, m_class = 0, m_id;
nullpo_retr(-1, sd);

if (!merc_is_hom_active(sd->hd)) {
if (!hom_is_active(sd->hd)) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand Down Expand Up @@ -7223,7 +7223,7 @@ ACMD_FUNC(makehomun)
return -1;
}

merc_create_homunculus_request(sd,homunid);
hom_create_request(sd,homunid);
return 0;
}

Expand All @@ -7236,7 +7236,7 @@ ACMD_FUNC(homfriendly)

nullpo_retr(-1, sd);

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand All @@ -7263,7 +7263,7 @@ ACMD_FUNC(homhungry)

nullpo_retr(-1, sd);

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand Down Expand Up @@ -7299,7 +7299,7 @@ ACMD_FUNC(homtalk)
if (sd->sc.cant.chat)
return -1; //no "chatting" while muted.

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand All @@ -7324,7 +7324,7 @@ ACMD_FUNC(hominfo)
struct status_data *status;
nullpo_retr(-1, sd);

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand Down Expand Up @@ -7363,7 +7363,7 @@ ACMD_FUNC(homstats)

nullpo_retr(-1, sd);

if ( !merc_is_hom_active(sd->hd) ) {
if ( !hom_is_active(sd->hd) ) {
clif_displaymessage(fd, msg_txt(sd,1254)); // You do not have a homunculus.
return -1;
}
Expand Down Expand Up @@ -7430,7 +7430,7 @@ ACMD_FUNC(homshuffle)
if(!sd->hd)
return -1; // nothing to do

if(!merc_hom_shuffle(sd->hd))
if(!hom_shuffle(sd->hd))
return -1;

clif_displaymessage(sd->fd, msg_txt(sd,1275)); // Homunculus stats altered.
Expand Down
24 changes: 11 additions & 13 deletions src/map/battle.c
Expand Up @@ -2866,6 +2866,10 @@ static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *s
if( sc && sc->data[SC_TRUESIGHT] )
skillratio += 2*sc->data[SC_TRUESIGHT]->val1;
#endif
if(sc->data[SC_HEAT_BARREL])
skillratio += 200;
if(sc->data[SC_P_ALTER])
skillratio += sc->data[SC_P_ALTER]->val2;
}

switch( skill_id )
Expand Down Expand Up @@ -3698,8 +3702,8 @@ static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *s
case RL_SLUGSHOT:
{
uint16 w = 50;
if (sd->equip_index[EQI_AMMO] > 0) {
uint16 idx = sd->equip_index[EQI_AMMO];
int16 idx = 0;
if (sd && (idx = sd->equip_index[EQI_AMMO]) > 0) {
struct item_data *id = NULL;
if ((id = itemdb_exists(sd->status.inventory[idx].nameid)))
w = id->weight;
Expand All @@ -3723,13 +3727,16 @@ static int battle_calc_attack_skill_ratio(struct Damage wd, struct block_list *s
skillratio += 400 + (300 * skill_lv);
break;
case RL_HAMMER_OF_GOD:
skillratio += -100 + (2000 + (skill_lv - 1) * 500);
//! TODO: Please check the right formula. [Cydh]
//kRO Update 2013-07-24. Ratio: 1600+lv*800
//kRO Update 2014-02-12. Coins increase the damage
skillratio += -100 + (1600 + skill_lv * 800) + ((sd) ? sd->spiritball_old : 10) * 20; //(custom)
break;
case RL_QD_SHOT:
skillratio += -100 + (max(pc_checkskill(sd,GS_CHAINACTION),1) * status_get_dex(src) / 5); //(custom)
break;
case RL_FIRE_RAIN:
skillratio += -100 + 500 + (200 * (skill_lv - 1)) + status_get_dex(src); //(custom)
skillratio += -100 + 2000 + status_get_dex(src); //(custom) //kRO Update 2013-07-24. 2,000% + caster's DEX (?) [Cydh]
break;
}
return skillratio;
Expand Down Expand Up @@ -3937,14 +3944,6 @@ struct Damage battle_attack_sc_bonus(struct Damage wd, struct block_list *src, u
ATK_ADD(wd.damage, wd.damage2, sc->data[SC_FLASHCOMBO]->val2);
RE_ALLATK_ADD(wd, sc->data[SC_FLASHCOMBO]->val2);
}
if(sc->data[SC_HEAT_BARREL]) {
ATK_ADD(wd.damage, wd.damage2, sc->data[SC_HEAT_BARREL]->val2);
RE_ALLATK_ADD(wd, sc->data[SC_HEAT_BARREL]->val2);
}
if(sc->data[SC_P_ALTER]) {
ATK_ADD(wd.damage, wd.damage2, sc->data[SC_P_ALTER]->val2);
RE_ALLATK_ADD(wd, sc->data[SC_P_ALTER]->val2);
}
// Monster Transformation bonus
if(wd.flag&BF_LONG && sc->data[SC_MTF_RANGEATK]) {
ATK_ADD(wd.damage, wd.damage2, 25);
Expand Down Expand Up @@ -6691,7 +6690,6 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
case SR_RAMPAGEBLASTER:
case NC_COLDSLOWER:
case NC_SELFDESTRUCTION:
case RL_FIRE_RAIN:
#ifdef RENEWAL
case KN_BOWLINGBASH:
case KN_SPEARSTAB:
Expand Down
8 changes: 2 additions & 6 deletions src/map/cashshop.c
Expand Up @@ -312,7 +312,7 @@ void cashshop_reloaddb( void ){
* Destroys cashshop class.
* Closes all and cleanup.
*/
int do_final_cashshop( void ){
void do_final_cashshop( void ){
int tab, i;

for( tab = CASHSHOP_TAB_NEW; tab < CASHSHOP_TAB_SEARCH; tab++ ){
Expand All @@ -322,17 +322,13 @@ int do_final_cashshop( void ){
aFree( cash_shop_items[tab].item );
}
memset( cash_shop_items, 0, sizeof( cash_shop_items ) );

return 0;
}

/*
* Initializes cashshop class.
* return
* 0 : success
*/
int do_init_cashshop( void ){
void do_init_cashshop( void ){
cashshop_read_db();

return 0;
}
4 changes: 2 additions & 2 deletions src/map/cashshop.h
Expand Up @@ -7,8 +7,8 @@
#include "../common/cbasetypes.h" // uint16, uint32
#include "pc.h" // struct map_session_data

int do_init_cashshop( void );
int do_final_cashshop( void );
void do_init_cashshop( void );
void do_final_cashshop( void );
void cashshop_reloaddb( void );
bool cashshop_buylist( struct map_session_data* sd, uint32 kafrapoints, int n, uint16* item_list );

Expand Down
3 changes: 1 addition & 2 deletions src/map/channel.c
Expand Up @@ -1137,11 +1137,10 @@ void channel_read_config(void) {
* return
* 0 : success
*/
int do_init_channel(void) {
void do_init_channel(void) {
channel_db = stridb_alloc(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, CHAN_NAME_LENGTH);
Channel_Config.ally_enable = Channel_Config.map_enable = Channel_Config.ally_autojoin = Channel_Config.map_autojoin = false;
channel_read_config();
return 0;
}

/*
Expand Down
2 changes: 1 addition & 1 deletion src/map/channel.h
Expand Up @@ -84,7 +84,7 @@ int channel_pcunbind(struct map_session_data *sd);
int channel_pcban(struct map_session_data *sd, char *chname, struct map_session_data *tsd, int flag);
int channel_pcsetopt(struct map_session_data *sd, char *chname, const char *option, const char *val);

int do_init_channel(void);
void do_init_channel(void);
void do_final_channel(void);

#ifdef __cplusplus
Expand Down
12 changes: 4 additions & 8 deletions src/map/chrif.c
Expand Up @@ -341,8 +341,8 @@ int chrif_save(struct map_session_data *sd, int flag) {

if( sd->status.pet_id > 0 && sd->pd )
intif_save_petdata(sd->status.account_id,&sd->pd->pet);
if( sd->hd && merc_is_hom_active(sd->hd) )
merc_save(sd->hd);
if( sd->hd && hom_is_active(sd->hd) )
hom_save(sd->hd);
if( sd->md && mercenary_get_lifetime(sd->md) > 0 )
mercenary_save(sd->md);
if( sd->ed && elemental_get_lifetime(sd->ed) > 0 )
Expand Down Expand Up @@ -1921,7 +1921,7 @@ int auth_db_final(DBKey key, DBData *data, va_list ap) {
/*==========================================
* Destructor
*------------------------------------------*/
int do_final_chrif(void) {
void do_final_chrif(void) {

if( char_fd != -1 ) {
do_close(char_fd);
Expand All @@ -1931,14 +1931,12 @@ int do_final_chrif(void) {
auth_db->destroy(auth_db, auth_db_final);

ers_destroy(auth_db_ers);

return 0;
}

/*==========================================
*
*------------------------------------------*/
int do_init_chrif(void) {
void do_init_chrif(void) {
if(sizeof(struct mmo_charstatus) > 0xFFFF){
ShowError("mmo_charstatus size = %d is too big to be transmitted. (must be below 0xFFFF) \n",
sizeof(struct mmo_charstatus));
Expand All @@ -1958,6 +1956,4 @@ int do_init_chrif(void) {

// send the user count every 10 seconds, to hide the charserver's online counting problem
add_timer_interval(gettick() + 1000, send_usercount_tochar, 0, 0, UPDATE_INTERVAL);

return 0;
}

0 comments on commit dd67f9d

Please sign in to comment.