Fix Tux walking backwards after automatic backflipping, fixes #1063
[supertux.git] / src / addon / addon.cpp
index ae9c636..2688422 100644 (file)
@@ -1,5 +1,6 @@
 //  SuperTux - Add-on
 //  Copyright (C) 2007 Christoph Sommer <christoph.sommer@2007.expires.deltadevelopment.de>
+//                2014 Ingo Ruhnke <grumbel@gmail.com>
 //
 //  This program is free software: you can redistribute it and/or modify
 //  it under the terms of the GNU General Public License as published by
@@ -82,7 +83,7 @@ Addon::parse(const Reader& lisp)
     lisp.get("title", addon->m_title);
     lisp.get("author", addon->m_author);
     lisp.get("license", addon->m_license);
-    lisp.get("http-url", addon->m_http_url);
+    lisp.get("url", addon->m_url);
     lisp.get("md5", addon->m_md5);
 
     return addon;
@@ -127,7 +128,7 @@ Addon::Addon() :
   m_title(),
   m_author(),
   m_license(),
-  m_http_url(),
+  m_url(),
   m_md5(),
   m_install_filename(),
   m_enabled(false)
@@ -158,9 +159,10 @@ Addon::is_enabled() const
 }
 
 void
-Addon::set_install_filename(const std::string& absolute_filename)
+Addon::set_install_filename(const std::string& absolute_filename, const std::string& md5)
 {
   m_install_filename = absolute_filename;
+  m_md5 = md5;
 }
 
 void