Projectiles from 224 to 360 degrees now look up
The previous logic missed a scenario where projectiles greater than 224
degrees fell into the (angle > 96) condition.
@@ -154,7 +154,9 @@ void projectile_launch(UBYTE index, upoint16_t *pos, UBYTE angle) BANKED {
// Set correct projectile frames based on angle
UBYTE dir = DIR_UP;
- if (angle > 160 && angle < 224 ) {
+ if (angle > 224) {
+ dir = DIR_UP;
+ } else if (angle > 160) {
dir = DIR_LEFT;
} else if (angle > 96) {
dir = DIR_DOWN;
