aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/World.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/World.h b/include/World.h
index f6a08f9..08ecabb 100644
--- a/include/World.h
+++ b/include/World.h
@@ -11,7 +11,7 @@ private:
struct line_t {
// x = 2.0 (window width) / HLINES
double start; // Where to change to dirt, going down (y)
- } *line;
+ } __attribute__ ((packed)) *line;
unsigned int lineCount;
public:
World *toLeft,*toRight;
@@ -20,6 +20,8 @@ public:
void draw(void);
void detect(vec2 *v,const float width);
float getWidth(void);
+ void saveToFile(FILE *f,World *parent);
+ void loadFromFile(FILE *f,World *parent);
};
#endif // WORLD_H