1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-12-26 05:56:41 +00:00

Fix "More Rust" mode for freeware (#288)

The engine would previously use the upscaled spritesheet for the headbands since the "original_textures" setting is only used with the Nicalis releases.
This commit is contained in:
Edward Stuckey 2024-12-03 15:30:57 -05:00 committed by GitHub
parent acc365451c
commit f7e76e09a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -79,7 +79,7 @@ impl GameEntity<()> for Credits {
// draw sue's headband separately because rust doesn't let me mutate the texture set multiple times at once
let headband_spritesheet = {
let base = if state.settings.original_textures { "ogph" } else { "plus" };
let base = if state.settings.original_textures || state.constants.is_base() { "ogph" } else { "plus" };
format!("headband/{}/Casts", base)
};

View file

@ -224,7 +224,7 @@ impl NPC {
}
fn get_headband_spritesheet(&self, state: &SharedGameState, texture_name: &str) -> String {
let base_dir = if state.settings.original_textures { "ogph" } else { "plus" };
let base_dir = if state.settings.original_textures || state.constants.is_base() { "ogph" } else { "plus" };
format!("headband/{}/{}", base_dir, texture_name)
}
}