From 89277bc9635b85052ee8af0d283a7b067c807120 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Sun, 29 May 2011 22:14:11 +0000 Subject: [PATCH] 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 --- src/addons/addons_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/addons/addons_manager.cpp b/src/addons/addons_manager.cpp index b7be7ce44..b112279ba 100644 --- a/src/addons/addons_manager.cpp +++ b/src/addons/addons_manager.cpp @@ -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 {