projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added configurability of editor gadgets
[rocksndiamonds.git]
/
src
/
screens.c
diff --git
a/src/screens.c
b/src/screens.c
index e8e4133f76551431deb3d3527b217fa03cdb78d1..ccf4e8f4d5495d24b893ab45ef89074c1bcd91f5 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-3290,6
+3290,15
@@
static void DrawChooseTree(TreeInfo **ti_ptr)
{
int fade_mask = (DrawingAreaChanged() ? REDRAW_ALL : REDRAW_FIELD);
{
int fade_mask = (DrawingAreaChanged() ? REDRAW_ALL : REDRAW_FIELD);
+ if (strEqual((*ti_ptr)->subdir, STRING_TOP_DIRECTORY))
+ {
+ game_status = GAME_MODE_MAIN;
+
+ DrawMainMenuExt(REDRAW_FIELD, FALSE);
+
+ return;
+ }
+
UnmapAllGadgets();
FreeScreenGadgets();
UnmapAllGadgets();
FreeScreenGadgets();