mirror of
https://github.com/zeldaret/tmc
synced 2026-07-10 07:06:52 -04:00
Merge pull request #442 from HookedBehemoth/Object2B
decompile Object2B
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
|
||||
void Object2B(Entity* object) {
|
||||
Entity* parent;
|
||||
|
||||
if (object->action == 0) {
|
||||
object->action = 1;
|
||||
object->z.WORD = 0;
|
||||
object->spriteRendering.b3 = 3;
|
||||
InitializeAnimation(object, 9);
|
||||
}
|
||||
|
||||
parent = object->parent;
|
||||
if (parent->z.WORD == 0) {
|
||||
DeleteThisEntity();
|
||||
} else {
|
||||
int position = 0x120 - parent->z.HALF.HI;
|
||||
sub_0805EC9C(object, position, position, parent->field_0x7c.HALF_U.HI);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user