fix: Optimizes gump relay info (Prep for Static Gumps) (#1698)
This commit is contained in:
parent
50fcee12dc
commit
cfe9e04c78
220 changed files with 364 additions and 402 deletions
|
|
@ -36,7 +36,7 @@ namespace Server.Guilds
|
|||
AddHtmlLocalized(360, 273, 90, 26, 1062989, 0x5000); // Declare War!
|
||||
}
|
||||
|
||||
public override void OnResponse(NetState sender, RelayInfo info)
|
||||
public override void OnResponse(NetState sender, in RelayInfo info)
|
||||
{
|
||||
var pm = sender.Mobile as PlayerMobile;
|
||||
|
||||
|
|
@ -95,11 +95,11 @@ namespace Server.Guilds
|
|||
|
||||
var maxKills = tKills == null
|
||||
? 0
|
||||
: Math.Clamp(Utility.ToInt32(info.GetTextEntry(11).Text), 0, 0xFFFF);
|
||||
: Math.Clamp(Utility.ToInt32(tKills), 0, 0xFFFF);
|
||||
var warLength = TimeSpan.FromHours(
|
||||
tWarLength == null
|
||||
? 0
|
||||
: Math.Clamp(Utility.ToInt32(info.GetTextEntry(10).Text), 0, 0xFFFF)
|
||||
: Math.Clamp(Utility.ToInt32(tWarLength), 0, 0xFFFF)
|
||||
);
|
||||
|
||||
if (war != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue