diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llworld.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/llworld.cpp b/linden/indra/newview/llworld.cpp index 621ab1d..c03ef6e 100644 --- a/linden/indra/newview/llworld.cpp +++ b/linden/indra/newview/llworld.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -770,6 +770,7 @@ void LLWorld::printPacketsLost() | |||
770 | 770 | ||
771 | void LLWorld::processCoarseUpdate(LLMessageSystem* msg, void** user_data) | 771 | void LLWorld::processCoarseUpdate(LLMessageSystem* msg, void** user_data) |
772 | { | 772 | { |
773 | if(!gWorldp) return; | ||
773 | LLViewerRegion* region = gWorldp->getRegion(msg->getSender()); | 774 | LLViewerRegion* region = gWorldp->getRegion(msg->getSender()); |
774 | if( region ) | 775 | if( region ) |
775 | { | 776 | { |
@@ -1026,6 +1027,7 @@ void process_enable_simulator(LLMessageSystem *msg, void **user_data) | |||
1026 | 1027 | ||
1027 | // Viewer trusts the simulator. | 1028 | // Viewer trusts the simulator. |
1028 | msg->enableCircuit(sim, TRUE); | 1029 | msg->enableCircuit(sim, TRUE); |
1030 | if(!gWorldp) return; | ||
1029 | gWorldp->addRegion(handle, sim); | 1031 | gWorldp->addRegion(handle, sim); |
1030 | 1032 | ||
1031 | // give the simulator a message it can use to get ip and port | 1033 | // give the simulator a message it can use to get ip and port |
@@ -1063,6 +1065,7 @@ public: | |||
1063 | 1065 | ||
1064 | LLHost sim(input["body"]["sim-ip-and-port"].asString()); | 1066 | LLHost sim(input["body"]["sim-ip-and-port"].asString()); |
1065 | 1067 | ||
1068 | if(!gWorldp) return; | ||
1066 | LLViewerRegion* regionp = gWorldp->getRegion(sim); | 1069 | LLViewerRegion* regionp = gWorldp->getRegion(sim); |
1067 | if (!regionp) | 1070 | if (!regionp) |
1068 | { | 1071 | { |
@@ -1081,6 +1084,7 @@ void process_disable_simulator(LLMessageSystem *mesgsys, void **user_data) | |||
1081 | LLHost host = mesgsys->getSender(); | 1084 | LLHost host = mesgsys->getSender(); |
1082 | 1085 | ||
1083 | //llinfos << "Disabling simulator with message from " << host << llendl; | 1086 | //llinfos << "Disabling simulator with message from " << host << llendl; |
1087 | if(!gWorldp) return; | ||
1084 | gWorldp->removeRegion(host); | 1088 | gWorldp->removeRegion(host); |
1085 | 1089 | ||
1086 | mesgsys->disableCircuit(host); | 1090 | mesgsys->disableCircuit(host); |
@@ -1090,6 +1094,7 @@ void process_disable_simulator(LLMessageSystem *mesgsys, void **user_data) | |||
1090 | void process_region_handshake(LLMessageSystem* msg, void** user_data) | 1094 | void process_region_handshake(LLMessageSystem* msg, void** user_data) |
1091 | { | 1095 | { |
1092 | LLHost host = msg->getSender(); | 1096 | LLHost host = msg->getSender(); |
1097 | if(!gWorldp) return; | ||
1093 | LLViewerRegion* regionp = gWorldp->getRegion(host); | 1098 | LLViewerRegion* regionp = gWorldp->getRegion(host); |
1094 | if (!regionp) | 1099 | if (!regionp) |
1095 | { | 1100 | { |