summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/mapmanager.cpp3
-rw-r--r--src/game-server/testing.cpp36
2 files changed, 0 insertions, 39 deletions
diff --git a/src/game-server/mapmanager.cpp b/src/game-server/mapmanager.cpp
index 68372ed9..2cc37de3 100644
--- a/src/game-server/mapmanager.cpp
+++ b/src/game-server/mapmanager.cpp
@@ -132,9 +132,6 @@ void MapManager::raiseActive(int mapId)
MapReader::readMap(file, composite);
LOG_INFO("Activated map \"" << file << "\" (id " << mapId << ")");
- // Add some testing stuff
- extern void testingMap(MapComposite *);
- testingMap(composite);
}
diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp
deleted file mode 100644
index 4828df40..00000000
--- a/src/game-server/testing.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-/* This file is for testing purpose only. It hardcodes some events related
- to the game. It should be removed once all the related managers have been
- implemented. There are no headers for this file on purpose. */
-
-#include <cassert>
-
-#include "game-server/gamehandler.hpp"
-#include "game-server/item.hpp"
-#include "game-server/itemmanager.hpp"
-#include "game-server/mapcomposite.hpp"
-#include "game-server/state.hpp"
-#include "scripting/script.hpp"
-
-static void dropItem(MapComposite *map, int x, int y, int type)
-{
- ItemClass *ic = ItemManager::getItem(type);
- assert(ic);
- Item *i = new Item(ic, 1);
- i->setMap(map);
- Point pos(x, y);
- i->setPosition(pos);
- GameState::insertSafe(i);
-}
-
-void testingMap(MapComposite *map)
-{
- switch (map->getID())
- {
- case 1:
- {
- // Drop some items.
- dropItem(map, 58 * 32 + 16, 20 * 32 + 16, 508);
- dropItem(map, 58 * 32 + 16, 21 * 32 + 16, 524);
- } break;
- }
-}