summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/net/connectionhandler.cpp13
-rw-r--r--src/skill.h4
3 files changed, 3 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 770b6746..2d73dbaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 6de1835e..b7d3b692 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 301baa8c..2893b188 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
{