diff options
author | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:02 -0500 |
commit | d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch) | |
tree | 7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/newview/llviewermessage.cpp | |
parent | Second Life viewer sources 1.17.3.0 (diff) | |
download | meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2 meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz |
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 79 |
1 files changed, 2 insertions, 77 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index d9e2927..d45cf34 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -2338,82 +2338,6 @@ void process_chat_from_simulator(LLMessageSystem *msg, void **user_data) | |||
2338 | } | 2338 | } |
2339 | } | 2339 | } |
2340 | 2340 | ||
2341 | /* | ||
2342 | void process_agent_to_new_region(LLMessageSystem *mesgsys, void **user_data) | ||
2343 | { | ||
2344 | // LLFastTimer t(LLFastTimer::FTM_TEMP8); | ||
2345 | |||
2346 | U64 handle; | ||
2347 | U32 ip; | ||
2348 | U16 port; | ||
2349 | LLUUID session_id; | ||
2350 | |||
2351 | // Actually, the agent itself should process this message. | ||
2352 | // From a "AgentToNewRegion" message | ||
2353 | mesgsys->getIPAddrFast(_PREHASH_RegionData, _PREHASH_IP, ip); | ||
2354 | mesgsys->getIPPortFast(_PREHASH_RegionData, _PREHASH_Port, port); | ||
2355 | mesgsys->getU64Fast(_PREHASH_RegionData, _PREHASH_Handle, handle); | ||
2356 | mesgsys->getUUIDFast(_PREHASH_RegionData, _PREHASH_SessionID, session_id); | ||
2357 | |||
2358 | if (gAgent.getSessionID() != session_id) | ||
2359 | { | ||
2360 | llwarns << "Got AgentToNewRegion with invalid session ID, ignoring" << llendl; | ||
2361 | return; | ||
2362 | } | ||
2363 | |||
2364 | LLViewerRegion *regionp; | ||
2365 | |||
2366 | F32 x, y; | ||
2367 | from_region_handle(handle, &x, &y); | ||
2368 | regionp = gWorldp->getRegionFromHandle(handle); | ||
2369 | if (!regionp) | ||
2370 | { | ||
2371 | if (gAgent.getRegion()) | ||
2372 | { | ||
2373 | llwarns << "current region " << gAgent.getRegion()->getOriginGlobal() << llendl; | ||
2374 | } | ||
2375 | |||
2376 | llwarns << "Agent being sent to invalid home region: " | ||
2377 | << x << ":" << y | ||
2378 | << " current pos " << gAgent.getPositionGlobal() | ||
2379 | << llendl; | ||
2380 | do_disconnect("You were sent to an invalid region."); | ||
2381 | return; | ||
2382 | |||
2383 | } | ||
2384 | |||
2385 | if (regionp == gAgent.getRegion()) | ||
2386 | { | ||
2387 | llinfos << "Agent being sent to current home region, skipping." << llendl; | ||
2388 | return; | ||
2389 | } | ||
2390 | |||
2391 | |||
2392 | llinfos << "AgentToNewRegion - being sent to " << x << ":" << y | ||
2393 | << "" | ||
2394 | |||
2395 | LLVector3 shift_vector = regionp->getPosRegionFromGlobal(gAgent.getRegion()->getOriginGlobal()); | ||
2396 | |||
2397 | gAgent.setRegion(regionp); | ||
2398 | |||
2399 | gObjectList.shiftObjects(shift_vector); | ||
2400 | |||
2401 | llinfos << "Changing home region to " << x << ":" << y << llendl; | ||
2402 | |||
2403 | // send camera update to new region | ||
2404 | |||
2405 | send_agent_update(TRUE, TRUE); | ||
2406 | |||
2407 | // set our upstream asset provider to the new simulator | ||
2408 | LLHost upstream(ip, port); | ||
2409 | gAssetStorage->setUpstream(upstream); | ||
2410 | gCacheName->setUpstream(upstream); | ||
2411 | |||
2412 | // Not needed, as simulator will always send request as it creates the new | ||
2413 | // agent in the new region. | ||
2414 | // send_current_avatar_info(); | ||
2415 | } | ||
2416 | */ | ||
2417 | 2341 | ||
2418 | // Simulator we're on is informing the viewer that the agent | 2342 | // Simulator we're on is informing the viewer that the agent |
2419 | // is starting to teleport (perhaps to another sim, perhaps to the | 2343 | // is starting to teleport (perhaps to another sim, perhaps to the |
@@ -3556,6 +3480,7 @@ void process_sim_stats(LLMessageSystem *msg, void **user_data) | |||
3556 | // This info is requested by the simulator when the agent first logs in | 3480 | // This info is requested by the simulator when the agent first logs in |
3557 | // or when it moves into a simulator in which it did not already have | 3481 | // or when it moves into a simulator in which it did not already have |
3558 | // a child agent. | 3482 | // a child agent. |
3483 | /* | ||
3559 | void process_avatar_info_request(LLMessageSystem *mesgsys, void **user_data) | 3484 | void process_avatar_info_request(LLMessageSystem *mesgsys, void **user_data) |
3560 | { | 3485 | { |
3561 | llinfos << "process_avatar_info_request()" << llendl; | 3486 | llinfos << "process_avatar_info_request()" << llendl; |
@@ -3563,7 +3488,7 @@ void process_avatar_info_request(LLMessageSystem *mesgsys, void **user_data) | |||
3563 | // Send the avatar appearance (parameters and texture entry UUIDs) | 3488 | // Send the avatar appearance (parameters and texture entry UUIDs) |
3564 | gAgent.sendAgentSetAppearance(); | 3489 | gAgent.sendAgentSetAppearance(); |
3565 | send_agent_update(TRUE, TRUE); | 3490 | send_agent_update(TRUE, TRUE); |
3566 | } | 3491 | }*/ |
3567 | 3492 | ||
3568 | 3493 | ||
3569 | void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data) | 3494 | void process_avatar_animation(LLMessageSystem *mesgsys, void **user_data) |