Numbered Steps to Reproduce Problem:
1.Modify the code below to say "in src.group" or just simply "group" letting it assume it's src.group anyways... instead of the usr.group it's now.
2.Login a few people, including guests to test with.
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
Force_Into_Group(var/mob/a in world)
if(a==src)
src<<"You can't group with yourself fool."
else if(a in group)
src<<"[a] is already in your group fool."
else
src<<"[a] has been forced into your group."
group.Add(a)
verb
Kick_From_Group(var/a in usr.group)
src<<"You have kicked [a] from your group."
group.Remove(a)
Expected Results:When you change it to say src.group, or just put in group then the verbs not showing up in the right click menu.
Actual Results:The verb works fine and the popup when clicked shows the correct players as it should every time but unless it says usr.group instead of src.group or just simply group, then the verbs will not show up in the right click menus of the associated players.
Does the problem occur:
Every time? Or how often?Every Time
In other games?Yes
In other user accounts?Yes
On other computers?Yes
When does the problem NOT occur?When using the workaround below.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Untested
Workarounds:
Use usr.group rather than src.group or group.
*** I believe the issue is related to "set src in list" would only work under the one condition that is that if you used usr.group
Since the set src in list wasn't explicitly used though and the references would still be pointing to where they do, I would expect it to work regardless, since the only thing that really changes is that the src variable doesn't change and the result is directed to a variable name of your own choosing.