mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-04 01:57:51 +00:00
Fix graphics toggle breaking NPCs and TSC
This commit is contained in:
parent
06b4aeead9
commit
b079488c27
|
@ -240,7 +240,11 @@ impl SettingsMenu {
|
||||||
MenuSelectionResult::Selected(4, toggle) => {
|
MenuSelectionResult::Selected(4, toggle) => {
|
||||||
if let MenuEntry::Toggle(_, value) = toggle {
|
if let MenuEntry::Toggle(_, value) = toggle {
|
||||||
state.settings.original_textures = !state.settings.original_textures;
|
state.settings.original_textures = !state.settings.original_textures;
|
||||||
state.reload_resources(ctx)?;
|
if self.on_title {
|
||||||
|
state.reload_resources(ctx)?;
|
||||||
|
} else {
|
||||||
|
state.reload_graphics();
|
||||||
|
}
|
||||||
let _ = state.settings.save(ctx);
|
let _ = state.settings.save(ctx);
|
||||||
|
|
||||||
*value = state.settings.original_textures;
|
*value = state.settings.original_textures;
|
||||||
|
|
Loading…
Reference in a new issue