summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorcracker64 <cracker642@gmail.com>2012-07-08 04:00:47 (GMT)
committer cracker64 <cracker642@gmail.com>2012-07-08 04:00:47 (GMT)
commite7035233fd6fda5599512a6c588e32ace134024b (patch)
treeeafc8542e1382822aac06862a855bd8265662678 /includes
parent5f3c10a6844aa2196258aa52448c8f753edb8439 (diff)
downloadpowder-e7035233fd6fda5599512a6c588e32ace134024b.zip
powder-e7035233fd6fda5599512a6c588e32ace134024b.tar.gz
Optimization for GoL, Added brush size and mouse wheel to lua!
Diffstat (limited to 'includes')
-rw-r--r--includes/defines.h4
-rw-r--r--includes/luaconsole.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/defines.h b/includes/defines.h
index 24b52ec..85b8d3b 100644
--- a/includes/defines.h
+++ b/includes/defines.h
@@ -234,8 +234,8 @@ int ISWIRE;
int GSPEED;
int love[XRES/9][YRES/9];
int lolz[XRES/9][YRES/9];
-unsigned char gol[XRES][YRES];
-unsigned char gol2[XRES][YRES][NGOL+1];
+unsigned char gol[YRES][XRES];
+unsigned char gol2[YRES][XRES][NGOL+1];
int SEC;
int SEC2;
int console_mode;
diff --git a/includes/luaconsole.h b/includes/luaconsole.h
index b4e313b..818a715 100644
--- a/includes/luaconsole.h
+++ b/includes/luaconsole.h
@@ -43,8 +43,8 @@
int *lua_el_func, *lua_el_mode, *lua_gr_func;
void luacon_open();
-int luacon_step(int mx, int my, int selectl, int selectr);
-int luacon_mouseevent(int mx, int my, int mb, int event);
+int luacon_step(int mx, int my, int selectl, int selectr, int bsx, int bsy);
+int luacon_mouseevent(int mx, int my, int mb, int event, int mouse_wheel);
int luacon_keyevent(int key, int modifier, int event);
int luacon_eval(char *command);
int luacon_part_update(int t, int i, int x, int y, int surround_space, int nt);