diff options
author | McCabe Maxsted | 2010-04-10 17:29:34 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-04-10 18:04:20 -0700 |
commit | c77a4e06abed1dcf28063db0281308a911d9b5b8 (patch) | |
tree | bba6fd3d6ab5b03438700d58826fb28a923df3f7 /linden/indra/newview/llviewermessage.cpp | |
parent | Merge branch '1.3-tpscreentext' into 1.3-tpscreentext2 (diff) | |
download | meta-impy-c77a4e06abed1dcf28063db0281308a911d9b5b8.zip meta-impy-c77a4e06abed1dcf28063db0281308a911d9b5b8.tar.gz meta-impy-c77a4e06abed1dcf28063db0281308a911d9b5b8.tar.bz2 meta-impy-c77a4e06abed1dcf28063db0281308a911d9b5b8.tar.xz |
Fixed teleport chat, made 'teleported from' messages appear when DisableTeleportScreens is true
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index a2bb5f1..eb11acb 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -3345,9 +3345,18 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**) | |||
3345 | // if (avatarp) | 3345 | // if (avatarp) |
3346 | { | 3346 | { |
3347 | // Chat the "back" SLURL. (DEV-4907) | 3347 | // Chat the "back" SLURL. (DEV-4907) |
3348 | // Show this in the console if DisableTeleportScreens is true | ||
3349 | // Why? Because it's nifty, that's why -- MC | ||
3348 | LLChat chat("Teleport completed from " + gAgent.getTeleportSourceSLURL()); | 3350 | LLChat chat("Teleport completed from " + gAgent.getTeleportSourceSLURL()); |
3349 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | 3351 | chat.mSourceType = CHAT_SOURCE_SYSTEM; |
3350 | LLFloaterChat::addChatHistory(chat); | 3352 | if (gSavedSettings.getBOOL("DisableTeleportScreens")) |
3353 | { | ||
3354 | LLFloaterChat::addChat(chat, FALSE, FALSE); | ||
3355 | } | ||
3356 | else | ||
3357 | { | ||
3358 | LLFloaterChat::addChatHistory(chat); | ||
3359 | } | ||
3351 | 3360 | ||
3352 | // Set the new position | 3361 | // Set the new position |
3353 | avatarp->setPositionAgent(agent_pos); | 3362 | avatarp->setPositionAgent(agent_pos); |