Decompile fn_18890 (CGlassWall::AddPanel)
Batch #12774 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_18890 CGlassWall::AddPanel: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
a015587515
commit
821354baad
1 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ CGlassWall::~CGlassWall() {
|
|||
// OFFSET: 0x00B44860
|
||||
// FUNCTION: fn_18890
|
||||
void CGlassWall::AddPanel(float angle, float scale, float x, float y, float z) {
|
||||
const int lastFrame = this->unknown_002C;
|
||||
const int startFrame = this->unknown_002C - 6;
|
||||
CParticle* particle = CreateParticle(reinterpret_cast<const vector3d*>(this->position), 1);
|
||||
float* params = &particle->unknown_0054;
|
||||
particle->scale = scale;
|
||||
|
|
@ -30,7 +30,7 @@ void CGlassWall::AddPanel(float angle, float scale, float x, float y, float z) {
|
|||
particle->unknown_00D8 = z;
|
||||
params[0] = 40.0f;
|
||||
params[1] = 30.0f;
|
||||
params[2] = static_cast<float>(lastFrame - 6);
|
||||
params[2] = static_cast<float>(startFrame);
|
||||
params[3] = 180.0f;
|
||||
params[4] = 50.0f;
|
||||
particle->SetTexture("effect\\ring_blue.tga");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue