player.angles[1] = vg_clampf( player.angles[1], -VG_PIf*0.5f, VG_PIf*0.5f );
}
+/* disaster */
+VG_STATIC int menu_enabled(void);
+#include "menu.h"
+
/* Deal with input etc */
VG_STATIC void player_update_pre(void)
{
return;
}
- if( vg_input_button_down( player.input_reset ) )
+ if( vg_input_button_down( player.input_reset ) && !menu_enabled() )
{
if( player.is_dead )
{
}
}
- if( vg_input_button_down( player.input_switch_mode ) )
+ if( vg_input_button_down( player.input_switch_mode ) && !menu_enabled() )
{
phys->on_board ^= 0x1;
player_mouseview();
}
-VG_STATIC void player_update_fixed(void) /* 2 */
+VG_STATIC void player_update_fixed(void) /* 2 */
{
if( player.rewinding )
return;