summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2010-08-26 13:46:56 (GMT)
committer Simon <simon@hardwired.org.uk>2010-08-26 13:46:56 (GMT)
commitbb88587d9dd932c9f67add15f2ca7c83b02a5371 (patch)
tree5457555797fafc6e5a00918c5daab1512df922f1 /interface.c
parentf426ee42e7170260088b78a1091bba43713822fe (diff)
downloadpowder-bb88587d9dd932c9f67add15f2ca7c83b02a5371.zip
powder-bb88587d9dd932c9f67add15f2ca7c83b02a5371.tar.gz
More rearrangement, particle drawing in own function
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