projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b651d9
)
Fix for bug #436 - just clear last_menus when set_current(NULL) is called
author
Miloš Klouček
<m.kloucek.m@atlas.cz>
Tue, 2 Jun 2009 15:05:45 +0000
(15:05 +0000)
committer
Miloš Klouček
<m.kloucek.m@atlas.cz>
Tue, 2 Jun 2009 15:05:45 +0000
(15:05 +0000)
SVN-Revision: 5891
src/gui/menu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/menu.cpp
b/src/gui/menu.cpp
index
abed287
..
cc062a0
100644
(file)
--- a/
src/gui/menu.cpp
+++ b/
src/gui/menu.cpp
@@
-144,7
+144,6
@@
Menu::pop_current()
void
Menu::set_current(Menu* menu)
{
- //last_menus.clear();
if (current_ && current_->close == true)
return;
@@
-156,6
+155,7
@@
Menu::set_current(Menu* menu)
current_ = menu;
}
else if (current_) {
+ last_menus.clear(); //NULL new menu pointer => close all menus
current_->effect_start_time = real_time;
current_->effect_progress = 0.0f;
current_->close = true;