From 1a194c732064c612f23e55c6c0033ffea0303050 Mon Sep 17 00:00:00 2001 From: celest Date: Tue, 29 Mar 2005 15:23:08 +0000 Subject: * Updated damage calculation for Magnum Break * Fixed #item not working properly git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1331 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/charcommand.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/map/charcommand.c') diff --git a/src/map/charcommand.c b/src/map/charcommand.c index 15c94e51a..ed18f27a4 100644 --- a/src/map/charcommand.c +++ b/src/map/charcommand.c @@ -32,7 +32,7 @@ static char command_symbol = '#'; -extern char msg_table[1000][256]; // Server messages (0-499 reserved for GM commands, 500-999 reserved for others) +extern char *msg_table[1000]; // Server messages (0-499 reserved for GM commands, 500-999 reserved for others) #define CCMD_FUNC(x) int charcommand_ ## x (const int fd, struct map_session_data* sd, const char* command, const char* message) @@ -1067,8 +1067,8 @@ int charcommand_item( for (i = 0; i < number; i += get_count) { // if pet egg if (pet_id >= 0) { - sd->catch_target_class = pet_db[pet_id].class_; - intif_create_pet(sd->status.account_id, sd->status.char_id, + pl_sd->catch_target_class = pet_db[pet_id].class_; + intif_create_pet(pl_sd->status.account_id, pl_sd->status.char_id, (short)pet_db[pet_id].class_, (short)mob_db[pet_db[pet_id].class_].lv, (short)pet_db[pet_id].EggID, 0, (short)pet_db[pet_id].intimate, 100, 0, 1, pet_db[pet_id].jname); @@ -1077,8 +1077,8 @@ int charcommand_item( memset(&item_tmp, 0, sizeof(item_tmp)); item_tmp.nameid = item_id; item_tmp.identify = 1; - if ((flag = pc_additem((struct map_session_data*)sd, &item_tmp, get_count))) - clif_additem((struct map_session_data*)sd, 0, 0, flag); + if ((flag = pc_additem(pl_sd, &item_tmp, get_count))) + clif_additem(pl_sd, 0, 0, flag); } } clif_displaymessage(fd, msg_table[18]); // Item created. -- cgit v1.2.3-70-g09d2