aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level3.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-09 16:43:23 -0600
committermegamage <none@none>2009-01-09 16:43:23 -0600
commit1ffb1cef3344206dfea149cb78146c30449d51c2 (patch)
tree655ac591f6f5aaca3dc65d67f3940f589e2394db /src/game/Level3.cpp
parent5c8f52d134899e10484dd47e91b612e2228842bf (diff)
parent90a82a81ad5d20d5e7188d6e9d660280f0b1eab4 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r--src/game/Level3.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp
index 3ac749531fb..601f7f6bdfb 100644
--- a/src/game/Level3.cpp
+++ b/src/game/Level3.cpp
@@ -6889,7 +6889,7 @@ bool ChatHandler::HandlePossessCommand(const char* args)
if (pUnit->GetTypeId() == TYPEID_PLAYER)
return false;
- m_session->GetPlayer()->Possess(pUnit);
+ pUnit->SetCharmedOrPossessedBy(m_session->GetPlayer(), true);
return true;
}
@@ -6897,11 +6897,7 @@ bool ChatHandler::HandlePossessCommand(const char* args)
bool ChatHandler::HandleUnPossessCommand(const char* args)
{
// Use this command to also unpossess ourselves
- if (m_session->GetPlayer()->isPossessed())
- m_session->GetPlayer()->UnpossessSelf(false);
- else
- m_session->GetPlayer()->RemovePossess(false);
-
+ m_session->GetPlayer()->RemoveCharmedOrPossessedBy(NULL);
return true;
}