mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 09:55:42 +00:00
Allow downgrading of existing addons
This commit is contained in:
parent
1f2eb4b4b2
commit
967504aba5
@ -55,7 +55,7 @@ addon_tracking_info get_addon_tracking_info(const addon_info& addon)
|
||||
|
||||
if(t.remote_version == t.installed_version) {
|
||||
t.state = ADDON_INSTALLED;
|
||||
} else if(t.remote_version > t.installed_version) {
|
||||
} else if(t.remote_version > t.installed_version || t.remote_version < t.installed_version) {
|
||||
t.state = ADDON_INSTALLED_UPGRADABLE;
|
||||
} else if(t.remote_version == version_info()) {
|
||||
// Remote version not set.
|
||||
|
Loading…
x
Reference in New Issue
Block a user