summaryrefslogtreecommitdiff
path: root/powder.h
diff options
context:
space:
mode:
authorFelix Wallin <nibbler.v1@gmail.com>2010-09-02 20:59:48 (GMT)
committer Felix Wallin <nibbler.v1@gmail.com>2010-09-02 20:59:48 (GMT)
commit32b1a2c3ab928bec980601f257487db39b0b8e33 (patch)
treecf699c673188c45ae2061a2f0f6952af72668c74 /powder.h
parent5c0ffc799bd2cb5d8596904df5be124b2f52a387 (diff)
downloadpowder-32b1a2c3ab928bec980601f257487db39b0b8e33.zip
powder-32b1a2c3ab928bec980601f257487db39b0b8e33.tar.gz
does not compile at the moment, cause unknown, also. always use // for one line comments
Diffstat (limited to 'powder.h')
-rw-r--r--powder.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/powder.h b/powder.h
index 7bd2a9c..b2e70a9 100644
--- a/powder.h
+++ b/powder.h
@@ -174,7 +174,7 @@ struct part_state
};
typedef struct part_state part_state;
-static part_type ptypes[PT_NUM] =
+static const part_type ptypes[PT_NUM] =
{
//Name Colour Advec Airdrag Airloss Loss Collid Grav Diffus Hotair Fal Burn Exp Mel Hrd M Section H Ins(real world, by triclops200) Description
{"", PIXPACK(0x000000), 0.0f, 0.00f * CFDS, 1.00f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 1, 1, SC_SPECIAL, R_TEMP+0.0f, 251, "Erases particles."},
@@ -246,7 +246,7 @@ static part_type ptypes[PT_NUM] =
//Name Colour Advec Airdrag Airloss Loss Collid Grav Diffus Hotair Fal Burn Exp Mel Hrd M Section H Ins(real world, by triclops200) Description
};
-static part_state pstates[PT_NUM] =
+static const part_state pstates[PT_NUM] =
{
// Name Solid Frzp Liquid Mpnt Gas Bpoint
/* NONE */ {ST_NONE, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
@@ -316,7 +316,7 @@ static part_state pstates[PT_NUM] =
/* DYST */ {ST_SOLID, PT_NONE, 0.0f, PT_DUST, 200.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
/* THRM */ {ST_SOLID, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f, PT_NONE, 0.0f},
};
-static unsigned char can_move[PT_NUM][PT_NUM] =
+static const unsigned char can_move[PT_NUM][PT_NUM] =
{
/* A B */
/* A 0 1 | B ligher than A */
@@ -398,21 +398,21 @@ static unsigned char can_move[PT_NUM][PT_NUM] =
/* e t r l e l a p r e s x m i e k w d t t t d d v t w t w d l t t n x n n u l l m d N d s n a r m d e E y y M H E s l l R T*/
};
-extern int isplayer;
-extern float player[20];
+int isplayer;
+float player[20];
-extern particle *parts;
-extern particle *cb_parts;
+particle *parts;
+particle *cb_parts;
-extern unsigned char bmap[YRES/CELL][XRES/CELL];
-extern unsigned char emap[YRES/CELL][XRES/CELL];
+unsigned char bmap[YRES/CELL][XRES/CELL];
+unsigned char emap[YRES/CELL][XRES/CELL];
-extern unsigned char cb_bmap[YRES/CELL][XRES/CELL];
-extern unsigned char cb_emap[YRES/CELL][XRES/CELL];
+unsigned char cb_bmap[YRES/CELL][XRES/CELL];
+unsigned char cb_emap[YRES/CELL][XRES/CELL];
-extern int pfree;
+int pfree;
-extern unsigned pmap[YRES][XRES];
+unsigned pmap[YRES][XRES];
unsigned cb_pmap[YRES][XRES];
int try_move(int i, int x, int y, int nx, int ny);
@@ -467,4 +467,4 @@ int create_parts(int x, int y, int r, int c);
void create_line(int x1, int y1, int x2, int y2, int r, int c);
-#endif \ No newline at end of file
+#endif