--- orig/rpggame/rpg.cpp
+++ mod/rpggame/rpg.cpp
@@ -65,6 +65,13 @@
 
     void gui(g3d_gui &g, bool firstpass)
     {
+        // auto-close menu if player gets too far away
+        if (menupos.dist(player1.o) > 96)
+        {
+            menutime = 0;
+            return;
+        }
+
         g.start(menutime, 0.03f, &menutab);
         switch(menuwhich)
         {



