mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-20 02:54:46 +00:00
resolved issue with failing tests; padding value of outfit name must always be observed
This commit is contained in:
parent
f730be261a
commit
b2e0fd1276
|
|
@ -125,7 +125,7 @@ final case class CharacterAppearanceData(app : BasicCharacterData,
|
|||
//factor guard bool values into the base size, not its corresponding optional field
|
||||
val nameStringSize : Long = StreamBitSize.stringBitSize(app.name, 16) + name_padding
|
||||
val outfitStringSize : Long = StreamBitSize.stringBitSize(outfit_name, 16) +
|
||||
(if(outfit_name.nonEmpty) { CharacterAppearanceData.outfitNamePadding } else { 0 })
|
||||
CharacterAppearanceData.outfitNamePadding //even if the outfit_name is blank, string always padded
|
||||
val altModelSize = CharacterAppearanceData.altModelBit(this).getOrElse(0)
|
||||
335L + nameStringSize + outfitStringSize + altModelSize
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue