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 | |
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')
-rw-r--r-- | linden/indra/newview/llviewerdisplay.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerdisplay.cpp b/linden/indra/newview/llviewerdisplay.cpp index 5b6b41f..ad186d5 100644 --- a/linden/indra/newview/llviewerdisplay.cpp +++ b/linden/indra/newview/llviewerdisplay.cpp | |||
@@ -39,7 +39,6 @@ | |||
39 | #include "llglheaders.h" | 39 | #include "llglheaders.h" |
40 | #include "llagent.h" | 40 | #include "llagent.h" |
41 | #include "llviewercontrol.h" | 41 | #include "llviewercontrol.h" |
42 | #include "llconsole.h" | ||
43 | #include "llcoord.h" | 42 | #include "llcoord.h" |
44 | #include "llcriticaldamp.h" | 43 | #include "llcriticaldamp.h" |
45 | #include "lldir.h" | 44 | #include "lldir.h" |
@@ -403,7 +402,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) | |||
403 | } | 402 | } |
404 | else | 403 | else |
405 | { | 404 | { |
406 | display_teleport_chat(LLAgent::TELEPORT_MOVING, LLAgent::sTeleportProgressMessages["arriving"]); | 405 | //display_teleport_chat(LLAgent::TELEPORT_MOVING, LLAgent::sTeleportProgressMessages["arriving"]); |
407 | } | 406 | } |
408 | break; | 407 | break; |
409 | 408 | ||
@@ -1399,14 +1398,13 @@ void display_teleport_chat(const LLAgent::ETeleportState tp_state, const std::st | |||
1399 | { | 1398 | { |
1400 | // Display different messages as the teleport progresses. | 1399 | // Display different messages as the teleport progresses. |
1401 | // Some are fetched from the sim, others are hardcoded -- MC | 1400 | // Some are fetched from the sim, others are hardcoded -- MC |
1402 | gConsole->setVisible(TRUE); | ||
1403 | 1401 | ||
1404 | LLAgent::ETeleportState new_tp_state = tp_state; | 1402 | LLAgent::ETeleportState new_tp_state = tp_state; |
1405 | if (old_tp_state != new_tp_state) | 1403 | if (old_tp_state != new_tp_state) |
1406 | { | 1404 | { |
1407 | LLChat chat (msg); | 1405 | LLChat chat (msg); |
1408 | chat.mSourceType = CHAT_SOURCE_SYSTEM; | 1406 | chat.mSourceType = CHAT_SOURCE_SYSTEM; |
1409 | LLFloaterChat::addChatHistory(chat); | 1407 | LLFloaterChat::addChat(chat, FALSE, FALSE); |
1410 | old_tp_state = new_tp_state; | 1408 | old_tp_state = new_tp_state; |
1411 | } | 1409 | } |
1412 | } | 1410 | } |
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); |