Fix warnings

This commit is contained in:
GBA bot 2022-01-01 12:07:16 +00:00
parent a8ba0c4d7d
commit 2e181ad0ea
2 changed files with 1 additions and 6 deletions

View file

@ -7,8 +7,6 @@ extern crate alloc;
mod rng;
mod sfx;
use core::borrow::Borrow;
use alloc::vec::Vec;
use rng::get_random;
@ -1501,7 +1499,6 @@ impl<'a> Particle<'a> {
enum GameStatus {
Continue,
Lost,
Won,
RespawnAtBoss,
}
@ -2192,7 +2189,7 @@ fn game_with_level(gba: &mut agb::Gba) {
sfx.vblank();
match game.advance_frame(&object, &mut sfx) {
GameStatus::Continue => {}
GameStatus::Lost | GameStatus::Won => {
GameStatus::Lost => {
break false;
}
GameStatus::RespawnAtBoss => {

View file

@ -22,9 +22,7 @@ const EMU_STEP: &[u8] = agb::include_wav!("sfx/EmuStep.wav");
const EMU_DEATH: &[u8] = agb::include_wav!("sfx/EmuDeath.wav");
const PURPLE_NIGHT: &[u8] = agb::include_wav!("sfx/01 - The Purple Night (Main Loop).wav");
const PURPLE_NIGHT_INTRO: &[u8] = agb::include_wav!("sfx/01 - The Purple Night (Intro).wav");
const SUNRISE: &[u8] = agb::include_wav!("sfx/02 - Sunrise (Main Loop).wav");
const BLANK_INTRO: &[u8] = agb::include_wav!("sfx/02 - Sunrise (Intro).wav");
const BLUE_SPIRIT: &[u8] = agb::include_wav!("sfx/03 - Blue Spirit (Main Loop).wav");
pub struct Sfx<'a> {