Umstellung auf SAVEPATH zum Finden von Savefiles
Change-Id: I9472248eb1741b777d0ec4a68b21f8427c8358cc
diff --git a/obj/tools/teller/t_cmds.c b/obj/tools/teller/t_cmds.c
index 62f431d..77ad1d1 100644
--- a/obj/tools/teller/t_cmds.c
+++ b/obj/tools/teller/t_cmds.c
@@ -4,6 +4,7 @@
#include "teller.h"
inherit T_BASE;
+#include <config.h>
#include <moving.h>
#include <attributes.h>
#include <terminal.h>
@@ -173,7 +174,7 @@
ip_name = obj->QueryProp(P_CALLED_FROM_IP);
if( !ip_name ) ip_name = obj->Query(P_IP_NAME);
return ip_name + " ("
- + dtime(get_dir("/save/"+nm[0..0]+"/"+nm+".o",4)[0]) +")";
+ + dtime(get_dir(SAVEPATH+nm[0..0]+"/"+nm+".o",4)[0]) +")";
}
else
{
@@ -184,7 +185,7 @@
ip_name = obj->QueryProp(P_CALLED_FROM_IP);
if( !ip_name ) ip_name = obj->Query(P_IP_NAME);
return ip_name + " ("
- + dtime(get_dir("/save/"+nm[0..0]+"/"+nm+".o",4)[0]) +")";
+ + dtime(get_dir(SAVEPATH+nm[0..0]+"/"+nm+".o",4)[0]) +")";
}
return ip_name + " [" + query_ip_number(obj) + "]";
}
diff --git a/obj/tools/teller/t_player.c b/obj/tools/teller/t_player.c
index f72b100..d457038 100644
--- a/obj/tools/teller/t_player.c
+++ b/obj/tools/teller/t_player.c
@@ -2,6 +2,7 @@
// Zwischenobjekt zum Lesen der Spielerdaten auch von nichteingeloggten.
// ----------------------------------------------------------------------
#include "teller.h"
+#include <config.h>
inherit "std/player/base";
@@ -12,7 +13,7 @@
string name;
string race;
string hands;
-mapping autoload;
+//mapping autoload;
_query_name() { return name; }
playername() { return name; }
@@ -40,7 +41,7 @@
Load( str )
{
- restore_object( "/save/"+str[0..0]+"/"+str );
+ restore_object( SAVEPATH+str[0..0]+"/"+str );
}
Notlogged() { return TRUE; }