Use negative values where appropriate

This commit is contained in:
Tal Hayon
2022-08-07 00:39:22 +03:00
parent 807d313e10
commit c45195c577
27 changed files with 61 additions and 72 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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);