mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
do we really need to multiply by bit count?
This commit is contained in:
parent
54aeb9fd31
commit
29a32b6453
2 changed files with 2 additions and 4 deletions
|
@ -45,7 +45,7 @@ public class AASBufferFix : MonoBehaviour
|
||||||
public void OnApplyAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)
|
public void OnApplyAAS(float[] settingsFloat, int[] settingsInt, byte[] settingsByte)
|
||||||
{
|
{
|
||||||
//create the synced data footprint
|
//create the synced data footprint
|
||||||
aasFootprint = ((settingsFloat.Length * 32) + 1) * ((settingsInt.Length * 32) + 1) * ((settingsByte.Length * 8) + 1);
|
aasFootprint = (settingsFloat.Length + 1) * ((settingsInt.Length) + 1) * ((settingsByte.Length) + 1);
|
||||||
|
|
||||||
if (!SyncDataMatchesExpected())
|
if (!SyncDataMatchesExpected())
|
||||||
{
|
{
|
||||||
|
|
|
@ -41,9 +41,7 @@ public class Utils
|
||||||
}
|
}
|
||||||
|
|
||||||
//bool to byte
|
//bool to byte
|
||||||
avatarBoolCount = ((int)Math.Ceiling((double)avatarBoolCount / 8) * 8);
|
avatarBoolCount = ((int)Math.Ceiling((double)avatarBoolCount / 8));
|
||||||
avatarFloatCount *= 32;
|
|
||||||
avatarIntCount *= 32;
|
|
||||||
|
|
||||||
//create the footprint
|
//create the footprint
|
||||||
return (avatarFloatCount + 1) * (avatarIntCount + 1) * (avatarBoolCount + 1);
|
return (avatarFloatCount + 1) * (avatarIntCount + 1) * (avatarBoolCount + 1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue