summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/defaults.cpp5
-rw-r--r--src/net/tmwa/beingrecv.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/defaults.cpp b/src/defaults.cpp
index e5b1a1036..698436614 100644
--- a/src/defaults.cpp
+++ b/src/defaults.cpp
@@ -684,12 +684,15 @@ DefaultsData* getPathsDefaults()
AddDEF("emptyAtlasName", "ignored");
AddDEF("skillCastingAnimation", "");
AddDEF("languageIcons", "graphics/badges/flags");
-
AddDEF("palettesDir", "");
AddDEF("defaultPaletteFile", "palette.gpl");
AddDEF("overweightPercent", 50);
+#ifdef TMWA_SUPPORT
+ AddDEF("gmDefaultLevel", 60);
+#endif // TMWA_SUPPORT
+
return configData;
}
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index 7a1b86356..7ff599be5 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -23,6 +23,7 @@
#include "net/tmwa/beingrecv.h"
#include "actormanager.h"
+#include "configuration.h"
#include "effectmanager.h"
#include "guild.h"
#include "party.h"
@@ -68,7 +69,7 @@ static void setGm(Being *const dstBeing,
{
if ((gmstatus & 0x80) != 0)
{
- dstBeing->setGroupId(60);
+ dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel"));
dstBeing->setGM(true);
}
else