diff options
author | Justin Clark-Casey (justincc) | 2011-12-14 16:43:49 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-14 16:43:49 +0000 |
commit | 84023c8162b5736ba2e9d492c5a569bb71eb255b (patch) | |
tree | 27fc98e3a42d2433b6d74c2433c989561fa189ea /OpenSim/Tools/pCampBot | |
parent | In AvatarFactoryModule.SetApperance(), perform ValidateBakedTextureCache() in... (diff) | |
download | opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.zip opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.gz opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.bz2 opensim-SC_OLD-84023c8162b5736ba2e9d492c5a569bb71eb255b.tar.xz |
Fix off by one bug in objects GrabbingBehaviour of pCampBot.exe
Also fix usage message.
Diffstat (limited to 'OpenSim/Tools/pCampBot')
-rw-r--r-- | OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs | 2 | ||||
-rw-r--r-- | OpenSim/Tools/pCampBot/pCampBot.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs b/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs index 6ad02b2..701881e 100644 --- a/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs +++ b/OpenSim/Tools/pCampBot/Behaviours/GrabbingBehaviour.cs | |||
@@ -47,7 +47,7 @@ namespace pCampBot | |||
47 | { | 47 | { |
48 | Dictionary<UUID, Primitive> objects = Bot.Objects; | 48 | Dictionary<UUID, Primitive> objects = Bot.Objects; |
49 | 49 | ||
50 | Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count)).Value; | 50 | Primitive prim = objects.ElementAt(Bot.Random.Next(0, objects.Count - 1)).Value; |
51 | 51 | ||
52 | // This appears to be a typical message sent when a viewer user clicks a clickable object | 52 | // This appears to be a typical message sent when a viewer user clicks a clickable object |
53 | Bot.Client.Self.Grab(prim.LocalID); | 53 | Bot.Client.Self.Grab(prim.LocalID); |
diff --git a/OpenSim/Tools/pCampBot/pCampBot.cs b/OpenSim/Tools/pCampBot/pCampBot.cs index 3f43cff..6249fae 100644 --- a/OpenSim/Tools/pCampBot/pCampBot.cs +++ b/OpenSim/Tools/pCampBot/pCampBot.cs | |||
@@ -111,7 +111,7 @@ namespace pCampBot | |||
111 | " -firstname first name for the bots\n" + | 111 | " -firstname first name for the bots\n" + |
112 | " -lastname lastname for the bots. Each lastname will have _<bot-number> appended, e.g. Ima Bot_0\n" + | 112 | " -lastname lastname for the bots. Each lastname will have _<bot-number> appended, e.g. Ima Bot_0\n" + |
113 | " -password password for the bots\n" + | 113 | " -password password for the bots\n" + |
114 | " -b, behaviours behaviours for bots. Comma separated, e.g. p,g. Default is p\n", | 114 | " -b, behaviours behaviours for bots. Comma separated, e.g. p,g. Default is p\n" + |
115 | " current options are:" + | 115 | " current options are:" + |
116 | " p (physics)" + | 116 | " p (physics)" + |
117 | " g (grab)" + | 117 | " g (grab)" + |