summaryrefslogtreecommitdiff
path: root/src/graphics.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.c')
-rw-r--r--src/graphics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/graphics.c b/src/graphics.c
index c036d89..55dd053 100644
--- a/src/graphics.c
+++ b/src/graphics.c
@@ -19,6 +19,7 @@
#include <defines.h>
#include <air.h>
+#include "gravity.h"
#include <powder.h>
#define INCLUDE_SHADERS
#include <graphics.h>
@@ -1426,7 +1427,7 @@ void draw_grav_zones(pixel * vid)
{
for (x=0; x<XRES/CELL; x++)
{
- if(gravmask[y][x])
+ if(gravmaskf[y*CELL*XRES+x*CELL])
{
for (j=0; j<CELL; j++)//draws the colors
for (i=0; i<CELL; i++)