You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eweapon FireEWeaponDegAngle(int type, int x, int y, int degrees, int step, int dmg, int sprite = -1, int sfx = 0, int scriptid = 0, untyped args = NULL)
@@ -3928,6 +3929,7 @@ eweapon FireEWeaponDegAngle(int type, int x, int y, int degrees, int step, int d
3928
3929
3929
3930
weap->DegAngle = degrees;
3930
3931
weap->Angular = true;
3932
+
weap->Dir = AngleDir8(degrees); //For shields
3931
3933
return weap;
3932
3934
}
3933
3935
eweapon FireEWeaponDir(int type, int x, int y, int dir, int step, int dmg, int sprite = -1, int sfx = 0, int scriptid = 0, untyped args = NULL)
@@ -3950,11 +3952,10 @@ eweapon FireEWeaponAtHero(int type, int x, int y, bool angular, int step, int dm
3950
3952
if(sfx) Audio->PlaySound(sfx);
3951
3953
3952
3954
weap->Angular = angular;
3953
-
int angle = Angle(x,y,Hero->X,Hero->Y);
3955
+
int degrees = Angle(x,y,Hero->X,Hero->Y);
3954
3956
if(angular)
3955
-
weap->Angle = angle;
3956
-
else
3957
-
weap->Dir = AngleDir8(angle);
3957
+
weap->DegAngle = degrees;
3958
+
weap->Dir = AngleDir8(degrees);
3958
3959
return weap;
3959
3960
}
3960
3961
@@ -3968,6 +3969,7 @@ lweapon FireLWeaponAngle(int type, int x, int y, int radians, int step, int dmg,
lweapon FireLWeaponDegAngle(int type, int x, int y, int degrees, int step, int dmg, int sprite = -1, int sfx = 0, int scriptid = 0, untyped args = NULL)
@@ -3980,6 +3982,7 @@ lweapon FireLWeaponDegAngle(int type, int x, int y, int degrees, int step, int d
3980
3982
3981
3983
weap->DegAngle = degrees;
3982
3984
weap->Angular = true;
3985
+
weap->Dir = AngleDir8(degrees); //For shields
3983
3986
return weap;
3984
3987
}
3985
3988
lweapon FireLWeaponDir(int type, int x, int y, int dir, int step, int dmg, int sprite = -1, int sfx = 0, int scriptid = 0, untyped args = NULL)
0 commit comments