aboutsummaryrefslogtreecommitdiffstats
path: root/code/game
diff options
context:
space:
mode:
Diffstat (limited to 'code/game')
-rw-r--r--code/game/ai_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/game/ai_main.c b/code/game/ai_main.c
index c032bcd..f67af0e 100644
--- a/code/game/ai_main.c
+++ b/code/game/ai_main.c
@@ -1628,6 +1628,9 @@ int BotInitLibrary(void) {
//cd directory
trap_Cvar_VariableStringBuffer("fs_cdpath", buf, sizeof(buf));
if (strlen(buf)) trap_BotLibVarSet("cddir", buf);
+ //home directory
+ trap_Cvar_VariableStringBuffer("fs_homepath", buf, sizeof(buf));
+ if (strlen(buf)) trap_BotLibVarSet("homedir", buf);
//
#ifdef MISSIONPACK
trap_BotLibDefine("MISSIONPACK");