- Trampoline test level
[supertux.git] / src / high_scores.cpp
index d50aea0..cb3d410 100644 (file)
@@ -1,9 +1,22 @@
-/*
-  by Adam Czachorowski
-  gislan@o2.pl
-*/
+//  $Id$
+// 
+//  SuperTux
+//  Copyright (C) 2004 Adam Czachorowski <gislan@o2.pl>
+//
+//  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 the Free Software Foundation; either version 2
+//  of the License, or (at your option) any later version.
+//
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  GNU General Public License for more details.
+// 
+//  You should have received a copy of the GNU General Public License
+//  along with this program; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+//  02111-1307, USA.
 
 /* Open the highscore file: */
 
@@ -61,9 +74,7 @@ void load_hs(void)
     }
  
   fclose(fi);
-
-printf("name=%s\n", hs_name.c_str());
-printf("score=%i\n\n", hs_score);
+  lisp_free(root_obj);
 }
 
 void save_hs(int score)
@@ -94,7 +105,9 @@ void save_hs(int score)
       sprintf(str, "%d", hs_score);
       yellow_nums->draw(str, 350, 170, 1, NO_UPDATE);
 
-      menu_process_current();
+      Menu::current()->draw();
+      Menu::current()->action();
+
       flipscreen();
 
       while(SDL_PollEvent(&event))