1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-01 08:37:42 +00:00

Fix graphics toggle breaking NPCs and TSC

This commit is contained in:
dawnDus 2022-03-08 21:37:44 -05:00
parent 06b4aeead9
commit b079488c27
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -240,7 +240,11 @@ impl SettingsMenu {
MenuSelectionResult::Selected(4, toggle) => {
if let MenuEntry::Toggle(_, value) = toggle {
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);
*value = state.settings.original_textures;