update
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@866 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
cfd39590db
commit
d46146370c
@ -1,5 +1,8 @@
|
||||
Date Added
|
||||
12/29
|
||||
* Another -1 alive_timer fix (SVN 866) [MouseJstr]
|
||||
* Added @dmstart and @dmtick for debugging malloc tests [MouseJstr]
|
||||
* Fix some more compile errors on different platforms [MouseJstr]
|
||||
* Fixing a crash if you change the name of a pet you don't have (SVN 863) [MouseJstr]
|
||||
* Eliminated src/common/malloc.c when not needed [MouseJstr]
|
||||
* Some code cleanup in prep for new debugging malloc (SVN 861) [MouseJstr]
|
||||
|
1
Makefile
1
Makefile
@ -1,4 +1,3 @@
|
||||
# $Id: Makefile 158 2004-10-01 03:45:15Z PoW $
|
||||
|
||||
CC = gcc -pipe
|
||||
# CC = gcc -pipe -x c++
|
||||
|
@ -4,6 +4,10 @@
|
||||
//
|
||||
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "char.h"
|
||||
#include "../common/strlib.h"
|
||||
#include "int_storage.h"
|
||||
@ -15,10 +19,6 @@
|
||||
#include "db.h"
|
||||
#include "malloc.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
static struct dbt *guild_db_;
|
||||
static struct dbt *castle_db_;
|
||||
static struct dbt *guild_expcache_db_;
|
||||
|
@ -3,12 +3,12 @@
|
||||
// SQL conversion by hack
|
||||
//
|
||||
|
||||
#include "char.h"
|
||||
#include "../common/strlib.h"
|
||||
#include "socket.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "char.h"
|
||||
#include "../common/strlib.h"
|
||||
#include "socket.h"
|
||||
|
||||
static struct party *party_pt;
|
||||
static int party_newid=100;
|
||||
|
@ -2,13 +2,13 @@
|
||||
// original code from athena
|
||||
// SQL conversion by Jioh L. Jung
|
||||
//
|
||||
#include "char.h"
|
||||
#include "../common/strlib.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "char.h"
|
||||
#include "../common/strlib.h"
|
||||
|
||||
struct s_pet *pet_pt;
|
||||
static int pet_newid = 100;
|
||||
|
||||
|
@ -2,11 +2,12 @@
|
||||
// original code from athena
|
||||
// SQL conversion by Jioh L. Jung
|
||||
//
|
||||
#include "char.h"
|
||||
#include "itemdb.h"
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "char.h"
|
||||
#include "itemdb.h"
|
||||
|
||||
#define STORAGE_MEMINC 16
|
||||
|
||||
// reset by inter_config_read()
|
||||
|
@ -230,6 +230,11 @@ ACMD_FUNC(rings); // by MouseJstr
|
||||
ACMD_FUNC(grind); // by MouseJstr
|
||||
ACMD_FUNC(grind2); // by MouseJstr
|
||||
|
||||
#ifdef DMALLOC
|
||||
ACMD_FUNC(dmstart); // by MouseJstr
|
||||
ACMD_FUNC(dmtick); // by MouseJstr
|
||||
#endif
|
||||
|
||||
ACMD_FUNC(jumptoid); // by Dino9021
|
||||
ACMD_FUNC(jumptoid2); // by Dino9021
|
||||
ACMD_FUNC(recallid); // by Dino9021
|
||||
@ -490,6 +495,11 @@ static AtCommandInfo atcommand_info[] = {
|
||||
{ AtCommand_Grind, "@grind", 99, atcommand_grind }, // [MouseJstr]
|
||||
{ AtCommand_Grind2, "@grind2", 99, atcommand_grind2 }, // [MouseJstr]
|
||||
|
||||
#ifdef DMALLOC
|
||||
{ AtCommand_DMStart, "@dmstart", 99, atcommand_dmstart }, // [MouseJstr]
|
||||
{ AtCommand_DMTick, "@dmtick", 99, atcommand_dmtick }, // [MouseJstr]
|
||||
#endif
|
||||
|
||||
{ AtCommand_JumpToId, "@jumptoid", 20, atcommand_jumptoid }, // [Dino9021]
|
||||
{ AtCommand_JumpToId, "@warptoid", 20, atcommand_jumptoid }, // [Dino9021]
|
||||
{ AtCommand_JumpToId, "@gotoid", 20, atcommand_jumptoid }, // [Dino9021]
|
||||
@ -7329,6 +7339,31 @@ atcommand_rings(const int fd, struct map_session_data* sd,
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DMALLOC
|
||||
unsigned long dmark_;
|
||||
int
|
||||
atcommand_dmstart(const int fd, struct map_session_data* sd,
|
||||
const char* command, const char* message)
|
||||
{
|
||||
dmark_ = dmalloc_mark();
|
||||
|
||||
clif_displaymessage(fd, "debug mark set");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
atcommand_dmtick(const int fd, struct map_session_data* sd,
|
||||
const char* command, const char* message)
|
||||
{
|
||||
dmalloc_log_changed ( dmark_, 1, 0, 1 ) ;
|
||||
dmark_ = dmalloc_mark();
|
||||
clif_displaymessage(fd, "malloc changes logged");
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*==========================================
|
||||
* @grind by [MouseJstr]
|
||||
*------------------------------------------
|
||||
|
@ -217,6 +217,9 @@ enum AtCommandType {
|
||||
AtCommand_Grind, // by MouseJstr
|
||||
AtCommand_Grind2, // by MouseJstr
|
||||
|
||||
AtCommand_DMStart, // by MouseJstr
|
||||
AtCommand_DMTick, // by MouseJstr
|
||||
|
||||
AtCommand_JumpToId, // by Dino9021
|
||||
AtCommand_JumpToId2, // by Dino9021
|
||||
AtCommand_RecallId, // by Dino9021
|
||||
|
@ -327,7 +327,7 @@ struct map_session_data {
|
||||
int last_skillid,last_skilllv; // Added by RoVeRT
|
||||
|
||||
unsigned char change_level; // [celest]
|
||||
unsigned int alive_timer; //[Valaris]
|
||||
int alive_timer; //[Valaris]
|
||||
|
||||
#ifndef TXT_ONLY
|
||||
int mail_counter; // mail counter for mail system [Valaris]
|
||||
|
Loading…
x
Reference in New Issue
Block a user