resolved issue with failing tests; padding value of outfit name must always be observed

This commit is contained in:
FateJH 2018-06-04 00:44:39 -04:00
parent f730be261a
commit b2e0fd1276
2 changed files with 10 additions and 10 deletions

View file

@ -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