From caa2c43f341ab070ff82d99410ffab773ba19e72 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Wed, 7 Feb 2007 06:25:00 +0000 Subject: - Removed deprecated console code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9815 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.c | 2 +- src/map/map.c | 6 +++--- src/map/pc.c | 5 ----- src/map/script.c | 2 +- 4 files changed, 5 insertions(+), 10 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 2f9039dd0..733bb7699 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -4858,7 +4858,7 @@ int clif_displaymessage(const int fd, char* mes) // invalid pointer? nullpo_retr(-1, mes); - //Console [Wizputer] //Scrapped, as these are shared by disconnected players =X [Skotlex] + //Scrapped, as these are shared by disconnected players =X [Skotlex] if (fd == 0) return 0; else { diff --git a/src/map/map.c b/src/map/map.c index 3817700fb..5f6421a66 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3978,9 +3978,9 @@ int do_init(int argc, char *argv[]) { //Done loading with the maps, no need for the grf module anymore. grfio_final(); - if ( console ) { - set_defaultconsoleparse(parse_console); - start_console(); + if( console ) + { + //##TODO invoke a CONSOLE_START plugin event } if (battle_config.pk_mode == 1) diff --git a/src/map/pc.c b/src/map/pc.c index 82f85c1ca..a0741f10d 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -77,11 +77,6 @@ int pc_isGM(struct map_session_data *sd) { if(sd->bl.type!=BL_PC ) return 0; - - //For console [Wizputer] //Unfortunately the console is "broken" because it shares fd 0 with disconnected players. [Skotlex] -// if ( sd->fd == 0 ) -// return 99; - for(i = 0; i < GM_num; i++) if (gm_account[i].account_id == sd->status.account_id) return gm_account[i].level; diff --git a/src/map/script.c b/src/map/script.c index c1eec1a43..e93b9df20 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -250,7 +250,7 @@ enum { MF_GUILDLOCK }; -//Reports on the console the src of an script error. +//Reports on the console the src of a script error. static void report_src(struct script_state *st) { struct block_list *bl; if (!st->oid) return; //Can't report source. -- cgit v1.2.3-60-g2f50