Decompile fn_20946 (CooldownState::CooldownState)

Batch #13970 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review.

- fn_20946 CooldownState::CooldownState: logic confirmed by peer review

Peer-reviewed-by: Yommy, KWDev, aDw
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-07 05:15:17 +00:00
commit 3f9e618bcf

View file

@ -18,6 +18,17 @@ CooldownState::CooldownState(int slotValue, int xValue, int yValue, std::uint32_
: segment(0), vertexCount(24), angle(0), duration(durationValue), start(startValue), elapsed(elapsedValue), finalMinute(0), reverse(reverseValue),
x(xValue), y(yValue), slot(slotValue) {
this->ClearEdges();
for (int index = 0; index < 24; ++index) {
RenderVertex& vertex = this->vertices[index];
vertex.x = 0.0f;
vertex.y = 0.0f;
vertex.z = 0.0f;
vertex.rhw = 0.0f;
vertex.diffuse = 0;
vertex.specular = 0xFF000000;
vertex.u = 0.0f;
vertex.v = 0.0f;
}
std::memset(this->vertices, 0, sizeof(this->vertices));
this->color = this->reverse != 0 ? 0xAAFFFFFFu : 0xAA000000u;
}