projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
re-add non-local gates
[carveJwlIkooP6JGAAIwe30JlM.git]
/
menu.h
diff --git
a/menu.h
b/menu.h
index 8da5026898ad5c0bc693526f94b2c42164d0fb63..c9865732b6912e4a54a98106ba49ebfc59be294f 100644
(file)
--- a/
menu.h
+++ b/
menu.h
@@
-11,6
+11,7
@@
#include "workshop.h"
#include "respawn.h"
#include "gui.h"
#include "workshop.h"
#include "respawn.h"
#include "gui.h"
+#include "ent_miniworld.h"
#define MENU_STACK_SIZE 8
#define MENU_STACK_SIZE 8
@@
-245,11
+246,16
@@
static void menu_trigger_item( ent_menuitem *item ){
vg.window_should_close = 1;
}
vg.window_should_close = 1;
}
- else if( MDL_CONST_PSTREQ( &menu.model, q, "reset" ) ){
+ else if( MDL_CONST_PSTREQ( &menu.model, q, "map" ) ){
+
menu_close();
respawn_begin_chooser();
}
menu_close();
respawn_begin_chooser();
}
-
+ else if( MDL_CONST_PSTREQ( &menu.model, q, "hub" ) ){
+ srinput.state = k_input_state_resume;
+ menu_close();
+ ent_miniworld_goback();
+ }
else if( MDL_CONST_PSTREQ( &menu.model, q, "credits" ) ){
menu.credits_open = 1;
}
else if( MDL_CONST_PSTREQ( &menu.model, q, "credits" ) ){
menu.credits_open = 1;
}