aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/Bot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/Bot.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs
index 7f941a4..7c16bf4 100644
--- a/OpenSim/Tools/pCampBot/Bot.cs
+++ b/OpenSim/Tools/pCampBot/Bot.cs
@@ -218,7 +218,19 @@ namespace pCampBot
218 { 218 {
219 MakeDefaultAppearance(wear); 219 MakeDefaultAppearance(wear);
220 } 220 }
221
221 Client.Self.Jump(true); 222 Client.Self.Jump(true);
223
224 // Extract nearby region information.
225 Client.Grid.GridRegion += BotManager.Grid_GridRegion;
226 uint xUint, yUint;
227 Utils.LongToUInts(Client.Network.CurrentSim.Handle, out xUint, out yUint);
228 ushort minX, minY, maxX, maxY;
229 minX = (ushort)Math.Min(0, xUint - 5);
230 minY = (ushort)Math.Min(0, yUint - 5);
231 maxX = (ushort)(xUint + 5);
232 maxY = (ushort)(yUint + 5);
233 Client.Grid.RequestMapBlocks(GridLayerType.Terrain, minX, minY, maxX, maxY, false);
222 } 234 }
223 else 235 else
224 { 236 {