Moderator: Developer Team
Okay, so it should beno, you have to remove the cast aka '(uint)'.
Also, a lot of ^ are in the code. They are generally wrong (bad copy paste) although they work perfectly.
They should be replaced with |
I don't see the benefits to XOR something. Here it clearly hides code clarity.
if ((mob.Flags & GameNPC.eFlags.PEACE) == 0)
{
mob.Flags |= GameNPC.eFlags.PEACE;
if ((mob.Flags & GameNPC.eFlags.PEACE) == 0)
{
mob.Flags |= GameNPC.eFlags.PEACE;
}
if ((mob.Flags & (uint)GameNPC.eFlags.PEACE) == 0)
{
mob.Flags ^= (uint)GameNPC.eFlags.PEACE;
}
I changed it back to what's in trunk and it compiles now for me no problem. I am very confused by that. Sorry for the confusion guysI updated and was able to compile. Check your SVN update log, did you have any files in a conflicted state that did not update?
Return to “%s” DOL Code Contributions
Users browsing this forum: No registered users and 1 guest