From ba6a9e534cfab2ecab6e120af4ab6ae11aee26c4 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Fri, 9 Jan 2009 16:45:48 +0100 Subject: Made respawn location a config option --- src/game-server/character.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game-server/character.cpp b/src/game-server/character.cpp index 780a142b..a17e3d89 100644 --- a/src/game-server/character.cpp +++ b/src/game-server/character.cpp @@ -26,6 +26,7 @@ #include "game-server/character.hpp" #include "defines.h" +#include "common/configuration.hpp" #include "game-server/accountconnection.hpp" #include "game-server/attackzone.hpp" #include "game-server/buysell.hpp" @@ -130,9 +131,9 @@ void Character::respawn() } //warp back to spawn point - static const int spawnMap = 1; - static const int spawnX = 1024; - static const int spawnY = 1024; + int spawnMap = Configuration::getValue("respawnMap", 1); + int spawnX = Configuration::getValue("respawnX", 1024); + int spawnY = Configuration::getValue("respawnY", 1024); GameState::enqueueWarp(this, MapManager::getMap(spawnMap), spawnX, spawnY); //make alive again -- cgit v1.2.3-60-g2f50