summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface.c b/interface.c
new file mode 100644
index 0000000..bb8f7cd
--- /dev/null
+++ b/interface.c
@@ -0,0 +1,15 @@
+#include "powder.h"
+#include "interface.h"
+
+
+void menu_count(void)
+{
+ int i=0;
+ msections[SC_WALL].itemcount = UI_WALLCOUNT-4;
+ msections[SC_SPECIAL].itemcount = 4;
+ for(i=0; i<PT_NUM; i++)
+ {
+ msections[ptypes[i].menusection].itemcount+=ptypes[i].menu;
+ }
+
+} \ No newline at end of file