diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 11:46:28 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-09 11:46:28 +0000 |
commit | 304a338d53fbb717ed8fd220848c9ee486a3c699 (patch) | |
tree | 59dddb3caad75bd7001786e5ea2d5b721e7af19f | |
parent | f9f87106db18980a7b38dd263820e298d052fa77 (diff) | |
download | manaserv-304a338d53fbb717ed8fd220848c9ee486a3c699.tar.gz manaserv-304a338d53fbb717ed8fd220848c9ee486a3c699.tar.xz manaserv-304a338d53fbb717ed8fd220848c9ee486a3c699.zip |
Removed useless references to script header.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/net/connectionhandler.cpp | 13 | ||||
-rw-r--r-- | src/skill.h | 4 |
3 files changed, 3 insertions, 16 deletions
@@ -2,6 +2,8 @@ * src/game-server/inventory.cpp: Fixed item move toward a not yet existing slot. + * src/skill.h, src/net/connectionhandler.cpp: Removed useless + references to script header. 2007-08-08 Guillaume Melquiond <guillaume.melquiond@gmail.com> diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index 6de1835..b7d3b69 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -27,10 +27,6 @@ #include "net/netcomputer.hpp" #include "utils/logger.h" -#ifdef SCRIPT_SUPPORT -#include "script.h" -#endif - bool ConnectionHandler::startListen(enet_uint16 port) { // Bind the server to the default localhost. @@ -96,15 +92,6 @@ void ConnectionHandler::process(enet_uint32 timeout) { NetComputer *comp = (NetComputer*) event.peer->data; -#ifdef SCRIPT_SUPPORT - // This could be good if you wanted to extend the - // server protocol using a scripting language. This - // could be attained by using allowing scripts to - // "hook" certain messages. - - //script->message(buffer); -#endif - // If the scripting subsystem didn't hook the message // it will be handled by the default message handler. diff --git a/src/skill.h b/src/skill.h index 301baa8..2893b18 100644 --- a/src/skill.h +++ b/src/skill.h @@ -27,9 +27,7 @@ #include <iostream> #include <vector> -#ifdef SCRIPT_SUPPORT -#include "script.h" -#endif +class Script; class Skill { |