Quote:
Originally Posted by { Angelius }
Orrr ...
if (User.Map == 1036/whatever){return;}
else {Process this skill }
|
No need for else when using return statements cause they end the method right then and there.
And yes, personall I like a list of maps something isn't allowed on cause it makes adding/removing them easier in the long run.
Alternatively you could give maps a permission flag to allow/disallow actions.