chore: Fixes variable types for possible performance issues (#2172)
This commit is contained in:
parent
6d43f2549c
commit
da517f56c4
82 changed files with 332 additions and 343 deletions
|
|
@ -26,9 +26,11 @@ public partial class BarkeepContract : Item
|
|||
{
|
||||
from.SendLocalizedMessage(503248); // Your godly powers allow you to place this vendor whereever you wish.
|
||||
|
||||
Mobile v = new PlayerBarkeeper(from, BaseHouse.FindHouseAt(from));
|
||||
var v = new PlayerBarkeeper(from, BaseHouse.FindHouseAt(from))
|
||||
{
|
||||
Direction = from.Direction & Direction.Mask
|
||||
};
|
||||
|
||||
v.Direction = from.Direction & Direction.Mask;
|
||||
v.MoveToWorld(from.Location, from.Map);
|
||||
|
||||
Delete();
|
||||
|
|
@ -68,9 +70,11 @@ public partial class BarkeepContract : Item
|
|||
}
|
||||
else
|
||||
{
|
||||
Mobile v = new PlayerBarkeeper(from, house);
|
||||
var v = new PlayerBarkeeper(from, house)
|
||||
{
|
||||
Direction = from.Direction & Direction.Mask
|
||||
};
|
||||
|
||||
v.Direction = from.Direction & Direction.Mask;
|
||||
v.MoveToWorld(from.Location, from.Map);
|
||||
|
||||
Delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue