fix: Cleans up Point checks and removes statics (#966)
- [X] Removes static freezing/unfreezing. Use other tools for this. - [X] Cleans up IPoint3D allocations - [X] Removes IPoint3D constructors since the compiler may not optimize the constructor path and allow allocations. Note: Instead of `new Point3D(m)`, do something like `new Point3D(m.Location)`. Sorry for the inconvenience. In the long run this will prevent abuse of hot paths that will cause performance issues.
This commit is contained in:
parent
23532db603
commit
0925a2d435
18 changed files with 184 additions and 958 deletions
|
|
@ -261,16 +261,6 @@ namespace Server.Gumps
|
|||
AddButtonLabeled(20, 225, GetButtonID(3, 104), "Doors");
|
||||
AddButtonLabeled(220, 225, GetButtonID(3, 105), "Signs");
|
||||
|
||||
AddHtml(20, 275, 400, 30, Color(Center("Statics"), LabelColor32));
|
||||
|
||||
AddButtonLabeled(20, 300, GetButtonID(3, 110), "Freeze (Target)");
|
||||
AddButtonLabeled(20, 325, GetButtonID(3, 111), "Freeze (World)");
|
||||
AddButtonLabeled(20, 350, GetButtonID(3, 112), "Freeze (Map)");
|
||||
|
||||
AddButtonLabeled(220, 300, GetButtonID(3, 120), "Unfreeze (Target)");
|
||||
AddButtonLabeled(220, 325, GetButtonID(3, 121), "Unfreeze (World)");
|
||||
AddButtonLabeled(220, 350, GetButtonID(3, 122), "Unfreeze (Map)");
|
||||
|
||||
goto case AdminGumpPage.Administer;
|
||||
}
|
||||
case AdminGumpPage.Administer_Server:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue