Make sure that only the latest (working) revision of an addon
is used (atm there is no support for displaying the revision number of an addons due to space/gui restrictions). git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
637a77906f
commit
89277bc963
@ -113,7 +113,10 @@ void AddonsManager::initOnline(const XMLNode *xml)
|
||||
m_addons_list.lock();
|
||||
if(index>=0)
|
||||
{
|
||||
m_addons_list.getData()[index].copyInstallData(addon);
|
||||
// Only copy the data if a newer revision is found.
|
||||
if(m_addons_list.getData()[index].getRevision()
|
||||
< addon.getRevision() )
|
||||
m_addons_list.getData()[index].copyInstallData(addon);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user