From 6eb71db7d0dad1722a06158b9f5f1d5c14c17377 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 7 Jun 2005 19:17:16 +0000 Subject: [PATCH] fixed bug in title.cpp reported by laprican SVN-Revision: 2578 --- src/title.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/title.cpp b/src/title.cpp index 5842cd4dc..91a632f52 100644 --- a/src/title.cpp +++ b/src/title.cpp @@ -33,11 +33,6 @@ #include #include -#ifndef WIN32 -#include -#include -#endif - #include "title.h" #include "video/screen.h" #include "video/surface.h" @@ -79,6 +74,7 @@ static CodeController* controller; static std::vector contrib_subsets; static LevelSubset* current_contrib_subset = 0; +static int current_subset = -1; /* If the demo was stopped - because game started, level editor was excuted, etc - call this when you get back @@ -111,6 +107,8 @@ void free_contrib_menu() contrib_subsets.clear(); contrib_menu->clear(); + current_contrib_subset = 0; + current_subset = -1; } void generate_contrib_menu() @@ -174,8 +172,6 @@ std::string get_level_name(const std::string& filename) void check_levels_contrib_menu() { - static int current_subset = -1; - int index = contrib_menu->check(); if (index == -1) return; -- 2.11.0