mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-27 15:20:25 +00:00
CGlow::SetRadius
This commit is contained in:
parent
b76a9412db
commit
a742e9bbb8
13
bit.cpp
13
bit.cpp
@ -315,6 +315,16 @@ void CTexturedRibbon::SetOuterRGBi(int index, unsigned char a3, unsigned char a4
|
||||
this->field_60[index+1] = (a3 | (((a5 << 8) | a4) << 8));
|
||||
}
|
||||
|
||||
// @NotOk
|
||||
// understand what 3C is
|
||||
void CGlow::SetRadius(int radius)
|
||||
{
|
||||
for (int i = 0; i < this->field_44; i++)
|
||||
{
|
||||
this->field_3C[2*i] = radius;
|
||||
}
|
||||
}
|
||||
|
||||
void validate_CFlatBit(void){
|
||||
VALIDATE(CFlatBit, field_58, 0x58);
|
||||
VALIDATE(CFlatBit, field_5A, 0x5A);
|
||||
@ -374,6 +384,9 @@ void validate_CGlow(void)
|
||||
{
|
||||
VALIDATE_SIZE(CGlow, 0x5C);
|
||||
|
||||
VALIDATE(CGlow, field_3C, 0x3C);
|
||||
VALIDATE(CGlow, field_44, 0x44);
|
||||
|
||||
VALIDATE(CGlow, field_4C, 0x4C);
|
||||
}
|
||||
|
||||
|
8
bit.h
8
bit.h
@ -130,7 +130,13 @@ class CGlow : public CBit
|
||||
{
|
||||
public:
|
||||
EXPORT void SetCentreRGB(unsigned char, unsigned char, unsigned char);
|
||||
unsigned char padTop[0x10];
|
||||
EXPORT void SetRadius(int);
|
||||
|
||||
int* field_3C;
|
||||
unsigned char padAfter3C[0x44-0x3C-4];
|
||||
|
||||
unsigned int field_44;
|
||||
unsigned char padAfter44[0x4C-0x44-4];
|
||||
|
||||
int field_4C;
|
||||
unsigned char padBottom[0x5C-0x4C-4];
|
||||
|
Loading…
Reference in New Issue
Block a user