[QUESTION] This code

07/14/2009 18:35 Pete1990#1
Anyone see anything wrong with this code here?
HTML Code:
        public static void SurroundDroppedItems(Character Me, bool Check)
        {
            foreach (DictionaryEntry DE in DroppedItems.AllDroppedItems)
            {
                DroppedItem item = (DroppedItem)DE.Value;

                if (item.Map == Me.LocMap)
                    if (MyMath.CanSee(Me.LocX, Me.LocY, item.X, item.Y))
                        if (!MyMath.CanSee(Me.PrevX, Me.PrevY, item.X, item.Y) || Check == false)
                        {
                            Me.MyClient.SendPacket(General.MyPackets.ItemDrop(item.UID, item.ItemId, item.X, item.Y));
                        }
            }
        }
07/14/2009 18:40 danielachraf#2
nothing wrong
07/14/2009 18:41 Pete1990#3
on my source i keep geting an error im upload the error when i find it again
07/14/2009 18:50 f0am#4
Maybe its where you have it
07/14/2009 18:52 danielachraf#5
Quote:
Originally Posted by f0am View Post
Maybe its where you have it
World.cs
07/16/2009 12:31 pajar22#6
uhmmm.. pete did you code your source? or not really the whole of it?
07/16/2009 15:07 f0am#7
Quote:
Originally Posted by pajar22 View Post
uhmmm.. pete did you code your source? or not really the whole of it?
Its LOTF his coders just edited it, i already spoke with his coders lol.
07/17/2009 08:23 pajar22#8
ohhh ok.. lol. well it seems like there are lots of bug in his source now.. foam are you in his team? do you have your own pserver? i want a good 5017 to play lol..
07/17/2009 08:31 f0am#9
Ehh,, for the last and final time everyone

IM IN NANOCO team. and my private own.

I'm not in petes, acros, legends, or anyone elses.. I AM IN NanoCO and my own private one
07/17/2009 08:35 pajar22#10
is it 5017 or coemu? can you give me your site? i want to join lol
07/17/2009 08:40 _tao4229_#11
It's not thread safe.

If another thread is modifying that hashtable(IE: Adding/Removing something to/from it) while you're looping through it on that thread, you're going to get butt-fucked by .NET.

Have fun fixing that, as I know (most likely) no one has or will fix that on LOTF.

Either that or there's other shitty code in there, which is likely.
Dump the error here and I'll tell you if it's because it's not thread-safe.
07/18/2009 05:56 hunterman01#12
Quote:
Originally Posted by f0am View Post
Ehh,, for the last and final time everyone

IM IN NANOCO team. and my private own.

I'm not in petes, acros, legends, or anyone elses.. I AM IN NanoCO and my own private one
who are you 0.0
07/18/2009 06:38 Pete1990#13
that would be fail lol