summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-07 06:25:00 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-07 06:25:00 +0000
commitcaa2c43f341ab070ff82d99410ffab773ba19e72 (patch)
treebdacd386345c40a82372d6e792973a0322e5286f /src/map
parenta397e43494e3e4ffb4015b52c04f026dcaa7e3ca (diff)
downloadhercules-caa2c43f341ab070ff82d99410ffab773ba19e72.tar.gz
hercules-caa2c43f341ab070ff82d99410ffab773ba19e72.tar.bz2
hercules-caa2c43f341ab070ff82d99410ffab773ba19e72.tar.xz
hercules-caa2c43f341ab070ff82d99410ffab773ba19e72.zip
- Removed deprecated console code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9815 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c2
-rw-r--r--src/map/map.c6
-rw-r--r--src/map/pc.c5
-rw-r--r--src/map/script.c2
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.