JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* config.h: added CONDERROR and NULLERROR macros.
[vor.git] / shape.h
diff --git a/shape.h b/shape.h
index a76951d..01a5708 100644 (file)
--- a/shape.h
+++ b/shape.h
@@ -1,3 +1,6 @@
+#ifndef VOR_SHAPE_H
+#define VOR_SHAPE_H
+
 #include <SDL/SDL.h>
 #include <stdint.h>
 
@@ -5,7 +8,10 @@ struct shape {
        int w, h;
        int mw;
        uint32_t *mask;
+       uint32_t area;
 };
 
 void get_shape(SDL_Surface *img, struct shape *s);
 int collide(int xdiff, int ydiff, struct shape *r, struct shape *s);
+
+#endif // VOR_SHAPE_H