1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-06 14:20:11 +00:00

Rename culling related variables (#225)

* rename some things

* reword one comment

* rename vars

* fix bgjyalift
This commit is contained in:
fig02 2020-06-24 21:20:31 -04:00 committed by GitHub
parent 6b2a013cca
commit d77dbe0465
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 189 additions and 189 deletions

View file

@ -36,7 +36,7 @@ const ActorInit Arrow_Light_InitVars = {
};
static InitChainEntry sInitChain[] = {
ICHAIN_F32(unk_F4, 2000, ICHAIN_STOP),
ICHAIN_F32(uncullZoneForward, 2000, ICHAIN_STOP),
};
void ArrowLight_SetupAction(ArrowLight* this, ArrowLightActionFunc actionFunc) {
@ -100,13 +100,13 @@ void ArrowLight_Hit(ArrowLight* this, GlobalContext* globalCtx) {
f32 offset;
u16 timer;
if (this->actor.unk_F0 < 50.0f) {
if (this->actor.projectedW < 50.0f) {
scale = 10.0f;
} else {
if (950.0f < this->actor.unk_F0) {
if (950.0f < this->actor.projectedW) {
scale = 310.0f;
} else {
scale = this->actor.unk_F0;
scale = this->actor.projectedW;
scale = ((scale - 50.0f) * (1.0f / 3.0f)) + 10.0f;
}
}