diff options
Diffstat (limited to 'src/resources/npcdb.cpp')
-rw-r--r-- | src/resources/npcdb.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index 832fa26d6..26f5e53cb 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -38,6 +38,8 @@ namespace bool mLoaded = false; } +extern int serverVersion; + void NPCDB::load() { if (mLoaded) @@ -70,6 +72,12 @@ void NPCDB::load() BeingInfo *currentInfo = new BeingInfo; + if (serverVersion > 0) + { + currentInfo->setTargetSelection(XML::getProperty( + npcNode, "targetSelection", true)); + } + currentInfo->setTargetCursorSize(XML::getProperty(npcNode, "targetCursor", "medium")); |