Decompile fn_21073 (CreateHallucinationPc)

Batch #18054 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_21073 CreateHallucinationPc: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, bibinir
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-12 10:49:59 +00:00
commit 5d37f2b89f

View file

@ -1189,7 +1189,9 @@ void __stdcall CreateHallucinationPc(
pc->SetBodyCostume(bodyPalette, 0);
CHalluPC* hallu = new CHalluPC(pc);
hallu->render.position = *position;
hallu->render.position.x = position->x;
hallu->render.position.y = position->y;
hallu->render.position.z = position->z;
unsigned char* const argb = reinterpret_cast<unsigned char*>(&hallu->render.color);
if (alpha != -1) {
argb[3] = static_cast<unsigned char>(alpha);