Decompile fn_21074 (CGameActor::Slot38)
Batch #12852 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_21074 CGameActor::Slot38: logic confirmed by peer review Peer-reviewed-by: Yommy, aDw, 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
92b46736de
commit
ee83e3ec92
1 changed files with 3 additions and 3 deletions
|
|
@ -2224,14 +2224,14 @@ void CGameActor::Slot38() {
|
|||
const float angle = this->render.angle;
|
||||
const int motion = this->render.curMotion;
|
||||
const int animation = this->render.animation;
|
||||
const char* sprite = this->render.sprite ? this->render.sprite->name.text : nullptr;
|
||||
const char* action = this->render.action ? this->render.action->name.text : nullptr;
|
||||
const char* sprite = !this->render.sprite ? nullptr : this->render.sprite->GetName();
|
||||
const char* action = !this->render.action ? nullptr : this->render.action->GetName();
|
||||
CCorpse* corpse = mode->SpawnCorpse(
|
||||
this->render.position.x, this->render.position.y, this->render.position.z, action, sprite, animation, motion, angle
|
||||
);
|
||||
|
||||
if (corpse) {
|
||||
if (this->render.unknown_010C > 0) {
|
||||
if (static_cast<int>(this->render.unknown_010C) > 0) {
|
||||
corpse->render.unknown_010C = this->render.unknown_010C;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue