diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 2 | ||||
-rw-r--r-- | src/map/map.c | 6 | ||||
-rw-r--r-- | src/map/pc.c | 5 | ||||
-rw-r--r-- | src/map/script.c | 2 |
4 files changed, 5 insertions, 10 deletions
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. |