mirror of
https://github.com/zeldaret/tmc
synced 2026-09-01 01:51:47 -04:00
Use negative values where appropriate
This commit is contained in:
@@ -34,7 +34,7 @@ void sub_080AB074(Entity* this) {
|
||||
this->frameIndex = 0;
|
||||
this->spritePriority.b0 = 3;
|
||||
}
|
||||
sub_0806FA90(this->parent, this, 0, 0xfffffff6 + -(s8)parent->field_0x7c.BYTES.byte3);
|
||||
sub_0806FA90(this->parent, this, 0, -10 + -(s8)parent->field_0x7c.BYTES.byte3);
|
||||
|
||||
this->x.WORD += gSineTable[parent->field_0x7c.BYTES.byte0] * (parent->field_0x7c.BYTES.byte2 << 8);
|
||||
this->y.WORD -= gSineTable[parent->field_0x7c.BYTES.byte0 + 0x40] * (parent->field_0x7c.BYTES.byte2 << 8);
|
||||
|
||||
@@ -34,7 +34,7 @@ void sub_080AB544(Entity* this) {
|
||||
void CannonballProjectile_Init(Entity* this) {
|
||||
this->action = 1;
|
||||
this->direction = this->type << 3;
|
||||
this->z.HALF.HI = 0xfffc;
|
||||
this->z.HALF.HI = -4;
|
||||
InitializeAnimation(this, this->type);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ void sub_080A9A64(Entity* this) {
|
||||
|
||||
void StalfosProjectile_SubAction0(Entity* this) {
|
||||
this->subAction = 2;
|
||||
this->z.HALF.HI = 0xfffe;
|
||||
this->z.HALF.HI = -2;
|
||||
}
|
||||
|
||||
void StalfosProjectile_SubAction1(Entity* this) {
|
||||
|
||||
@@ -47,7 +47,7 @@ void sub_080ACA68(Entity* this) {
|
||||
void V3TennisBallProjectile_Init(Entity* this) {
|
||||
this->action = 1;
|
||||
this->direction = 0x10;
|
||||
this->z.HALF.HI = 0xfffc;
|
||||
this->z.HALF.HI = -4;
|
||||
this->child = NULL;
|
||||
InitializeAnimation(this, 7);
|
||||
SoundReq(SFX_199);
|
||||
|
||||
Reference in New Issue
Block a user