fieser fehler, relativ alt. planes mehrfach defined (weil im header nicht extern)

This commit is contained in:
Enno Rehling 2004-04-10 23:23:24 +00:00
parent 763261092d
commit 5f0ba5c2a0
2 changed files with 5 additions and 3 deletions

View File

@ -35,6 +35,8 @@
#include <string.h>
#include <stdlib.h>
struct plane *planes;
plane *
getplane(const region *r)
{

View File

@ -57,12 +57,12 @@ typedef struct plane {
struct attrib *attribs;
} plane;
struct plane *planes;
extern struct plane *planes;
struct plane *getplane(const struct region *r);
struct plane *findplane(int x, int y);
void init_planes(void);
int getplaneid(const struct region *r);
void init_planes(void);
int getplaneid(const struct region *r);
struct plane * getplanebyid(int id);
int region_x(const struct region *r, const struct faction *f);
int region_y(const struct region *r, const struct faction *f);